diff --git a/Source/rotation/Rotation.cpp b/Source/rotation/Rotation.cpp index a495f49d1e..5de2aecd4d 100644 --- a/Source/rotation/Rotation.cpp +++ b/Source/rotation/Rotation.cpp @@ -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;