diff options
author | 2022-06-02 23:43:53 +0200 | |
---|---|---|
committer | 2022-06-02 14:43:53 -0700 | |
commit | 57564a09f01a13b315447d7ab942ddd18d1281af (patch) | |
tree | 60f8baf45df96160b05717c2c46298e1d82b85ff /Source/FieldSolver/ElectrostaticSolver.cpp | |
parent | 81619e11b45c6621553e96601682c531c3cc49a3 (diff) | |
download | WarpX-57564a09f01a13b315447d7ab942ddd18d1281af.tar.gz WarpX-57564a09f01a13b315447d7ab942ddd18d1281af.tar.zst WarpX-57564a09f01a13b315447d7ab942ddd18d1281af.zip |
Move warning logger in ablastr (#3154)
* initial work to move the Warning Logger into ablastr
* progress with warn manager class
* moved Warning Logger in ablastr
* fixed bugs
* Fix: `SpectralFieldDataRZ.cpp`
Missing include for `WarpX::getCosts(lev);`
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/FieldSolver/ElectrostaticSolver.cpp')
-rw-r--r-- | Source/FieldSolver/ElectrostaticSolver.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/FieldSolver/ElectrostaticSolver.cpp b/Source/FieldSolver/ElectrostaticSolver.cpp index ba462004a..54def35da 100644 --- a/Source/FieldSolver/ElectrostaticSolver.cpp +++ b/Source/FieldSolver/ElectrostaticSolver.cpp @@ -18,6 +18,8 @@ #include "Utils/WarpXProfilerWrapper.H" #include "Parallelization/WarpXCommUtil.H" +#include <ablastr/warn_manager/WarnManager.H> + #include <AMReX_Array.H> #include <AMReX_Array4.H> #include <AMReX_BLassert.H> @@ -284,8 +286,9 @@ WarpX::computePhi (const amrex::Vector<std::unique_ptr<amrex::MultiFab> >& rho, bool always_use_bnorm = (max_norm_b > 0); if (!always_use_bnorm) { if (absolute_tolerance == 0.0) absolute_tolerance = amrex::Real(1e-6); - WarpX::GetInstance().RecordWarning( - "ElectrostaticSolver", "Max norm of rho is 0", WarnPriority::low + ablastr::warn_manager::WMRecordWarning( + "ElectrostaticSolver", "Max norm of rho is 0", + ablastr::warn_manager::WarnPriority::low ); } |