mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Make sure time boundary doesn't prevent secondary particle creation (#3043)
This commit is contained in:
parent
3dff03f824
commit
390005e841
1 changed files with 9 additions and 7 deletions
|
|
@ -762,13 +762,15 @@ void transport_history_based_single_particle(Particle& p)
|
|||
{
|
||||
while (p.alive()) {
|
||||
p.event_calculate_xs();
|
||||
if (!p.alive())
|
||||
break;
|
||||
p.event_advance();
|
||||
if (p.collision_distance() > p.boundary().distance) {
|
||||
p.event_cross_surface();
|
||||
} else {
|
||||
p.event_collide();
|
||||
if (p.alive()) {
|
||||
p.event_advance();
|
||||
}
|
||||
if (p.alive()) {
|
||||
if (p.collision_distance() > p.boundary().distance) {
|
||||
p.event_cross_surface();
|
||||
} else if (p.alive()) {
|
||||
p.event_collide();
|
||||
}
|
||||
}
|
||||
p.event_revive_from_secondary();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue