Skip to content

Commit

Permalink
Cast rho as const
Browse files Browse the repository at this point in the history
  • Loading branch information
eebasso committed Dec 6, 2023
1 parent 1ac8ca4 commit ec925ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_MLCGSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ MLCGSolverT<MF>::solve_cg (MF& sol, const MF& rhs, RT eps_rel, RT eps_abs)

for (; iter <= maxiter; ++iter)
{
RT rho = dotxy(r,r);
const RT rho = dotxy(r,r);

if ( rho == RT(0.0) )
{
Expand Down

0 comments on commit ec925ae

Please sign in to comment.