Fixing Bug, where Ids weren't setted properly.

This commit is contained in:
Christian
2019-05-28 17:28:08 +02:00
parent e0f14e8af2
commit 61730e03d3
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -71,5 +71,7 @@ loggerParticle H5TB_Interface::transform(const Particle &logPart) {
res.vx_ms = logPart.get_Speed_ms()[0];
res.vy_ms = logPart.get_Speed_ms()[1];
res.vz_ms = logPart.get_Speed_ms()[2];
std::cout<<"Id:\t"<<res.Id<<"\tparent_Id:\t"<<res.parentId<<"\n";
return (res);
}
+1
View File
@@ -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.