Skip to content

Commit

Permalink
Update Src/LinearSolvers/MLMG/AMReX_PCGSolver.H
Browse files Browse the repository at this point in the history
Co-authored-by: Revathi  Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com>
  • Loading branch information
WeiqunZhang and RevathiJambunathan authored Aug 27, 2024
1 parent c90a43f commit a523965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/LinearSolvers/MLMG/AMReX_PCGSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int pcg_solve (T* AMREX_RESTRICT x, T* AMREX_RESTRICT r,
if (rnorm0 == 0) { return 0; }

int iter = 0;
T rho_prev = T(1.0); // initialized to quite gcc warning
T rho_prev = T(1.0); // initialized to quiet gcc warning
T p[N];
for (iter = 1; iter <= maxiter; ++iter) {
T z[N];
Expand Down

0 comments on commit a523965

Please sign in to comment.