diff options
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 } |