Fixing Bug, where Ids weren't setted properly.
This commit is contained in:
@@ -73,6 +73,7 @@ void Simulation::doit() {
|
||||
IntOut = interactionPtr->do_Interaction(&curPart);
|
||||
for (int i=0; i<IntOut.get_number_new_particles(); i++) {
|
||||
partQue.push_back(IntOut.get_new_particles()[i]);
|
||||
partQue.back().set_Id(numberTotalParticles++);
|
||||
}
|
||||
if (IntOut.get_delete_density()) {
|
||||
// Decrease Density by one now.
|
||||
|
||||
Reference in New Issue
Block a user