mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Ensure particles lost during event_calculate_xs are terminated
This commit is contained in:
parent
02239256f6
commit
e665965c60
1 changed files with 2 additions and 0 deletions
|
|
@ -679,6 +679,8 @@ void transport_history_based_single_particle(Particle& p)
|
|||
{
|
||||
while (true) {
|
||||
p.event_calculate_xs();
|
||||
if (!p.alive())
|
||||
break;
|
||||
p.event_advance();
|
||||
if (p.collision_distance() > p.boundary().distance) {
|
||||
p.event_cross_surface();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue