Skip to content

Commit

Permalink
fix shadowing again
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Sep 25, 2024
1 parent 59d123c commit ffe98b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/rotation/Rotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Castro::fill_rotational_psi(const Box& bx,
#endif

if (denom != 0.0) {
auto omega = get_omega_vec(geomdata, j);
psi(i,j,k) = rotational_potential(r, omega, coord) / denom;
auto omega_vec = get_omega_vec(geomdata, j);
psi(i,j,k) = rotational_potential(r, omega_vec, coord) / denom;
}
else {
psi(i,j,k) = 0.0;
Expand Down

0 comments on commit ffe98b9

Please sign in to comment.