diff options
author | 2022-06-02 23:43:53 +0200 | |
---|---|---|
committer | 2022-06-02 14:43:53 -0700 | |
commit | 57564a09f01a13b315447d7ab942ddd18d1281af (patch) | |
tree | 60f8baf45df96160b05717c2c46298e1d82b85ff /Source/Utils/MPIInitHelpers.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/Utils/MPIInitHelpers.cpp')
-rw-r--r-- | Source/Utils/MPIInitHelpers.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Utils/MPIInitHelpers.cpp b/Source/Utils/MPIInitHelpers.cpp index 4dc5b9ae8..374165296 100644 --- a/Source/Utils/MPIInitHelpers.cpp +++ b/Source/Utils/MPIInitHelpers.cpp @@ -6,7 +6,7 @@ */ #include "MPIInitHelpers.H" -#include "WarpX.H" +#include <ablastr/warn_manager/WarnManager.H> #include <AMReX_Config.H> #include <AMReX_ParallelDescriptor.H> @@ -66,14 +66,16 @@ namespace utils << mtn(thread_provided) << ") is LOWER than requested " << mtn(thread_required) << "). This might lead to undefined " << "results in asynchronous operations (e.g. async_io)."; - WarpX::GetInstance().RecordWarning("MPI", ss.str(), WarnPriority::high); + ablastr::warn_manager::WMRecordWarning( + "MPI", ss.str(), ablastr::warn_manager::WarnPriority::high); } if( thread_provided > thread_required ){ ss << "NOTE: Provided MPI thread safety level (" << mtn(thread_provided) << ") is stricter than requested " << mtn(thread_required) << "). This might reduce multi-node " << "communication performance."; - WarpX::GetInstance().RecordWarning("MPI", ss.str()); + ablastr::warn_manager::WMRecordWarning( + "MPI", ss.str()); } #endif } |