MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / ~ParticleGroup

Method ~ParticleGroup

SRC/element/PFEMElement/ParticleGroup.cpp:363–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363ParticleGroup::~ParticleGroup() {
364 for (int i = 0; i < (int) particles.size(); i++) {
365 Particle *p = particles[i];
366 if (p != 0)
367 delete p;
368 }
369 particles.clear();
370}
371
372void ParticleGroup::addParticle(const VDouble &coord, const VDouble &vel, double p) {
373 Particle *particle = new Particle;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected