Skip to content

Commit

Permalink
print number of iterations only for PC solver (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeverinDiederichs authored Nov 18, 2022
1 parent 763998a commit 5398b24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Hipace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,9 @@ Hipace::Evolve ()
m_multi_beam.InSituWriteToFile(step, m_physical_time, geom[lev]);

// printing and resetting predictor corrector loop diagnostics
if (m_verbose>=2) amrex::AllPrint()<<"Rank "<<rank<<": avg. number of iterations "
<< m_predcorr_avg_iterations << " avg. transverse B field error "
<< m_predcorr_avg_B_error << "\n";
if (m_verbose>=2 && !m_explicit) amrex::AllPrint() << "Rank " << rank <<
": avg. number of iterations " << m_predcorr_avg_iterations <<
" avg. transverse B field error " << m_predcorr_avg_B_error << "\n";
m_predcorr_avg_iterations = 0.;
m_predcorr_avg_B_error = 0.;

Expand Down

0 comments on commit 5398b24

Please sign in to comment.