mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Apply suggestions from code review
Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
c60a7e569f
commit
5066bfa42d
4 changed files with 10 additions and 13 deletions
|
|
@ -563,12 +563,13 @@ void transport_history_based_single_particle(Particle& p)
|
|||
while (true) {
|
||||
p.event_calculate_xs();
|
||||
p.event_advance();
|
||||
if( p.collision_distance_ > p.boundary_.distance )
|
||||
if (p.collision_distance_ > p.boundary_.distance) {
|
||||
p.event_cross_surface();
|
||||
else
|
||||
} else {
|
||||
p.event_collide();
|
||||
}
|
||||
p.event_revive_from_secondary();
|
||||
if(!p.alive_)
|
||||
if (!p.alive_)
|
||||
break;
|
||||
}
|
||||
p.event_death();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue