From 724a0e061274d4eac5daed409933fe073899eda7 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 17 May 2022 09:58:22 +0200 Subject: Use uniform error message formatting in more source files (#2964) * use WARPX_ALWAYS_ASSERT_WITH_MESSAGE instead of Abort() * fix bug * Update Source/WarpX.cpp Co-authored-by: Axel Huebl * use more uniform text formatting * fixed bug * fixed bug * using Utils::TextMsg in more files * fixed bug * use Utils::TextMsg in more files * fixed bug * use Utils::TextMsg in more files * fixed last merge conflict * fixed bug * fix indentation Co-authored-by: Axel Huebl --- Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp') diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp index fd70c0552..59a247921 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp @@ -13,6 +13,7 @@ #else # include "FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H" #endif +#include "Utils/TextMsg.H" #include "Utils/WarpXAlgorithmSelection.H" #include "Utils/WarpXConst.H" #include "WarpX.H" @@ -73,7 +74,8 @@ void FiniteDifferenceSolver::EvolveRhoCartesianECT ( #ifdef AMREX_USE_EB #if !(defined(WARPX_DIM_3D) || defined(WARPX_DIM_XZ)) - amrex::Abort("EvolveRhoCartesianECT: Embedded Boundaries are only implemented in 3D and XZ"); + amrex::Abort(Utils::TextMsg::Err( + "EvolveRhoCartesianECT: Embedded Boundaries are only implemented in 3D and XZ")); #endif amrex::LayoutData* cost = WarpX::getCosts(lev); -- cgit v1.2.3