Update src/boundary_condition.cpp

Co-authored-by: Guillaume Giudicelli <guillaume.giudicelli@gmail.com>
This commit is contained in:
GuySten 2026-03-10 21:51:33 +02:00 committed by GitHub
parent 2ca33428c2
commit d35a8f90aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -265,7 +265,7 @@ void RotationalPeriodicBC::handle_particle(
// Handle phantom birth location if migration present
if (simulation::migration_present) {
auto r_born = p.r_born();
auto & r_born = p.r_born();
Position new_r_born;
new_r_born[zero_axis_idx_] = r_born[zero_axis_idx_];
new_r_born[axis_1_idx_] =