- // remove dead Particle*s from Active
- for( setPart::iterator it = particles_To_Remove.begin();
- it != particles_To_Remove.end();
- it++ )
- {
- active_Particles.erase(*it);
+ // add new Particle*s to Active
+ for( setPart::iterator it = particles_To_Add.begin();
+ it != particles_To_Add.end();
+ it++ )
+ {
+ DPF(0, "Particle Insert");
+ active_Particles.insert(*it);
+ }
+
+ // remove dead Particle*s from Active
+ for( setPart::iterator it = particles_To_Remove.begin();
+ it != particles_To_Remove.end();
+ it++ )
+ {
+ DPF(0, "Particle Delete");
+ active_Particles.erase(*it);
+ }