We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e3249f commit d1df80aCopy full SHA for d1df80a
src/particle.cpp
@@ -247,11 +247,7 @@ void Particle::event_advance()
247
std::min({boundary().distance(), collision_distance(), distance_cutoff});
248
249
// 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
- }
+ this->move_distance(distance);
255
double dt = distance / speed;
256
this->time() += dt;
257
this->lifetime() += dt;
0 commit comments