| 370 | } |
| 371 | |
| 372 | void ParticleGroup::addParticle(const VDouble &coord, const VDouble &vel, double p) { |
| 373 | Particle *particle = new Particle; |
| 374 | particles.push_back(particle); |
| 375 | |
| 376 | particle->moveTo(coord, 0.0); |
| 377 | particle->setVelOnly(vel); |
| 378 | particle->setPressure(p); |
| 379 | VDouble accel = vel; |
| 380 | accel *= 0.0; |
| 381 | particle->setAccel(accel); |
| 382 | |
| 383 | particle->setGroupTag(this->getTag()); |
| 384 | } |
| 385 | |
| 386 | void ParticleGroup::addParticle(const VDouble &coord, |
| 387 | const VDouble &vel, |
no test coverage detected