apply clang-format

This commit is contained in:
GuySten 2026-03-10 21:52:46 +02:00
parent d35a8f90aa
commit e43e6e7bca

View file

@ -46,10 +46,10 @@ void ReflectiveBC::handle_particle(Particle& p, const Surface& surf) const
// Handle phantom birth location if migration present
if (simulation::migration_present) {
const auto & r = p.r();
const auto& r = p.r();
auto n = surf.normal(r);
n /= n.norm();
auto & r_born = p.r_born();
auto& r_born = p.r_born();
p.r_born() = r_born - 2.0 * (r_born - r).dot(n) * n;
}
@ -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_] =