use old position from mover
This commit is contained in:
@@ -396,7 +396,7 @@ void Simulation::processUntilTermination(particle::Particle& particle) {
|
||||
#endif
|
||||
|
||||
SimulationTimer::eventStartPoint(std::string("Mover"));
|
||||
particle.specie()->mover()->move(&particle,
|
||||
old_position = particle.specie()->mover()->move(&particle,
|
||||
particle.timeUntilCollision(),
|
||||
electric_field_.get(),
|
||||
magnetic_field_.get(),
|
||||
@@ -465,6 +465,7 @@ void Simulation::processUntilTermination(particle::Particle& particle) {
|
||||
std::stringstream out;
|
||||
out << "particle " << particle.specie()->name();
|
||||
out << " left simulation domain but still contributes to the density";
|
||||
out << "\nold position: " << old_position.cylinderEntries();
|
||||
out << "\nposition: " << particle.cylinderPosition().cylinderEntries();
|
||||
out << "\nvelocity: " << particle.velocity().cartesianEntries();
|
||||
ERROR(out.str());
|
||||
|
||||
Reference in New Issue
Block a user