Skip to content

Commit d1df80a

Browse files
authored
Leverage particle.move_distance in event advance (#3544)
1 parent 5e3249f commit d1df80a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/particle.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,7 @@ void Particle::event_advance()
247247
std::min({boundary().distance(), collision_distance(), distance_cutoff});
248248

249249
// Advance particle in space and time
250-
// Short-term solution until the surface source is revised and we can use
251-
// this->move_distance(distance)
252-
for (int j = 0; j < n_coord(); ++j) {
253-
coord(j).r() += distance * coord(j).u();
254-
}
250+
this->move_distance(distance);
255251
double dt = distance / speed;
256252
this->time() += dt;
257253
this->lifetime() += dt;

0 commit comments

Comments
 (0)