mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
apply clang-format
This commit is contained in:
parent
d35a8f90aa
commit
e43e6e7bca
1 changed files with 3 additions and 3 deletions
|
|
@ -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_] =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue