Apply suggestions from code review

Co-Authored-By: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
John Tramm 2020-01-15 17:02:37 -06:00 committed by GitHub
parent c60a7e569f
commit 5066bfa42d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 13 deletions

View file

@ -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();