Skip to content

Commit 483342d

Browse files
committed
Don't reassign particle cell and surface
1 parent 05b19ad commit 483342d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/particle.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,6 @@ void Particle::cross_transformation_bc(
757757
// once after. For mesh surface filters, we need to artificially move
758758
// the particle slightly back in case the surface crossing is coincident
759759
// with a mesh boundary
760-
761760
if (!model::active_surface_tallies.empty()) {
762761
score_surface_tally(*this, model::active_surface_tallies);
763762
}
@@ -773,9 +772,9 @@ void Particle::cross_transformation_bc(
773772
r() = new_r;
774773
u() = new_u;
775774

776-
// Reassign particle's cell and surface
777-
coord(0).cell = cell_last(0);
778-
surface() = -surface();
775+
// Note that particle's cell and surface are not strictly assigned upon
776+
// surface crossing. The cell will be assigned during the
777+
// neighbor_list_find_cell call below.
779778

780779
// If a transformation surface is coincident with a lattice or universe
781780
// boundary, it is necessary to redetermine the particle's coordinates in

0 commit comments

Comments
 (0)