mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Boundary info accessors (#3496)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
4483583ddd
commit
637e04a9ba
9 changed files with 81 additions and 63 deletions
|
|
@ -790,7 +790,7 @@ void transport_history_based_single_particle(Particle& p)
|
|||
p.event_advance();
|
||||
}
|
||||
if (p.alive()) {
|
||||
if (p.collision_distance() > p.boundary().distance) {
|
||||
if (p.collision_distance() > p.boundary().distance()) {
|
||||
p.event_cross_surface();
|
||||
} else if (p.alive()) {
|
||||
p.event_collide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue