Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Dec 7, 2024
1 parent f95a027 commit 04e3b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLCellLinOp.H
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ MLCellLinOpT<MF>::compGrad (int amrlev, const Array<MF*,AMREX_SPACEDIM>& grad,
{
gy(i,j,k,n) = dyi*(s(i,j,k,n) - s(i,j-1,k,n));
if (coord == CoordSys::SPHERICAL) {
rinv = RT(1.0) / (problo[0] + (i + RT(0.5)) * dx[0]);
RT rinv = RT(1.0) / (problo[0] + (i + RT(0.5)) * dx[0]);
gy(i,j,k,n) *= rinv;
}
});
Expand Down

0 comments on commit 04e3b42

Please sign in to comment.