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/Python/WarpXWrappers.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/Python') diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index 399597f60..ec15a67bf 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -17,6 +17,8 @@ #include "WarpXWrappers.H" #include "WarpX_py.H" +#include + #include #include #include @@ -611,8 +613,9 @@ namespace auto * rho_fp = warpx.get_pointer_rho_fp(lev); if (rho_fp == nullptr) { - warpx.RecordWarning( - "WarpXWrappers", "rho_fp is not allocated", WarnPriority::low + ablastr::warn_manager::WMRecordWarning( + "WarpXWrappers", "rho_fp is not allocated", + ablastr::warn_manager::WarnPriority::low ); return; } -- cgit v1.2.3