From 5398b24f914d9bf1300dbe35a0ade4a9cde320bb Mon Sep 17 00:00:00 2001 From: Severin Diederichs <65728274+SeverinDiederichs@users.noreply.github.com> Date: Fri, 18 Nov 2022 14:52:51 +0100 Subject: [PATCH] print number of iterations only for PC solver (#816) --- src/Hipace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Hipace.cpp b/src/Hipace.cpp index 50a7c313c5..0f6f5de4c2 100644 --- a/src/Hipace.cpp +++ b/src/Hipace.cpp @@ -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 "<=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.;