From 59d123ced445a9bd94e3968d241a170f95bcc735 Mon Sep 17 00:00:00 2001 From: Zhi Date: Wed, 25 Sep 2024 18:44:06 -0400 Subject: [PATCH] fix shadowing variable --- Exec/science/wdmerger/Prob.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Exec/science/wdmerger/Prob.cpp b/Exec/science/wdmerger/Prob.cpp index 78c7104463..1e5b246f0d 100644 --- a/Exec/science/wdmerger/Prob.cpp +++ b/Exec/science/wdmerger/Prob.cpp @@ -834,8 +834,8 @@ Castro::update_relaxation(Real time, Real dt) { // Compute the effective potential. - auto omega = get_omega_vec(geomdata, j); - Real phiEff = phi(i,j,k) + rotational_potential(r, omega, coord); + auto omega_vec = get_omega_vec(geomdata, j); + Real phiEff = phi(i,j,k) + rotational_potential(r, omega_vec, coord); for (int n = 0; n < 3; ++n) { r[n] -= L1[n]; @@ -903,8 +903,8 @@ Castro::update_relaxation(Real time, Real dt) { GpuArray r; position(i, j, k, geomdata, r); - auto omega = get_omega_vec(geomdata, j); - Real phiEff = phi(i,j,k) + rotational_potential(r, omega, coord); + auto omega_vec = get_omega_vec(geomdata, j); + Real phiEff = phi(i,j,k) + rotational_potential(r, omega_vec, coord); Real done = 0.0_rt;