Fixing Bug, where Ids weren't setted properly.
This commit is contained in:
@@ -71,5 +71,7 @@ loggerParticle H5TB_Interface::transform(const Particle &logPart) {
|
|||||||
res.vx_ms = logPart.get_Speed_ms()[0];
|
res.vx_ms = logPart.get_Speed_ms()[0];
|
||||||
res.vy_ms = logPart.get_Speed_ms()[1];
|
res.vy_ms = logPart.get_Speed_ms()[1];
|
||||||
res.vz_ms = logPart.get_Speed_ms()[2];
|
res.vz_ms = logPart.get_Speed_ms()[2];
|
||||||
|
|
||||||
|
std::cout<<"Id:\t"<<res.Id<<"\tparent_Id:\t"<<res.parentId<<"\n";
|
||||||
return (res);
|
return (res);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ void Simulation::doit() {
|
|||||||
IntOut = interactionPtr->do_Interaction(&curPart);
|
IntOut = interactionPtr->do_Interaction(&curPart);
|
||||||
for (int i=0; i<IntOut.get_number_new_particles(); i++) {
|
for (int i=0; i<IntOut.get_number_new_particles(); i++) {
|
||||||
partQue.push_back(IntOut.get_new_particles()[i]);
|
partQue.push_back(IntOut.get_new_particles()[i]);
|
||||||
|
partQue.back().set_Id(numberTotalParticles++);
|
||||||
}
|
}
|
||||||
if (IntOut.get_delete_density()) {
|
if (IntOut.get_delete_density()) {
|
||||||
// Decrease Density by one now.
|
// Decrease Density by one now.
|
||||||
|
|||||||
Reference in New Issue
Block a user