From 57564a09f01a13b315447d7ab942ddd18d1281af Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 2 Jun 2022 23:43:53 +0200 Subject: 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 --- Source/Utils/MPIInitHelpers.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/Utils/MPIInitHelpers.cpp') 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 #include #include @@ -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 } -- cgit v1.2.3