Skip to content

Commit

Permalink
fix shadowing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Sep 25, 2024
1 parent 1fa51a6 commit 59d123c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Exec/science/wdmerger/Prob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -903,8 +903,8 @@ Castro::update_relaxation(Real time, Real dt) {
GpuArray<Real, 3> 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;

Expand Down

0 comments on commit 59d123c

Please sign in to comment.