Skip to content

Commit 944471e

Browse files
committed
Make sure to call cross_surface on the lowest coordinate universe
1 parent ea3b7e5 commit 944471e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/particle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ void Particle::cross_surface(const Surface& surf)
551551
write_message(1, " Crossing surface {}", surf.id_);
552552
}
553553
// get the particle's current universe
554-
auto& univ {model::universes[coord(0).universe]};
554+
auto& univ {model::universes[lowest_coord().universe]};
555555
univ->cross_surface(*this);
556556
}
557557

0 commit comments

Comments
 (0)