mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Leverage particle.move_distance in event advance (#3544)
This commit is contained in:
parent
5e3249f006
commit
d1df80a210
1 changed files with 1 additions and 5 deletions
|
|
@ -247,11 +247,7 @@ void Particle::event_advance()
|
|||
std::min({boundary().distance(), collision_distance(), distance_cutoff});
|
||||
|
||||
// Advance particle in space and time
|
||||
// Short-term solution until the surface source is revised and we can use
|
||||
// this->move_distance(distance)
|
||||
for (int j = 0; j < n_coord(); ++j) {
|
||||
coord(j).r() += distance * coord(j).u();
|
||||
}
|
||||
this->move_distance(distance);
|
||||
double dt = distance / speed;
|
||||
this->time() += dt;
|
||||
this->lifetime() += dt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue