From 1c6f1bf24513b4e56f640eea402fa8223ea1c667 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 1 May 2023 18:25:01 +0200 Subject: Use WARPX_ABORT_WITH_MESSAGE("msg") instead of amrex::Abort(Utils::TextMsg::Err("msg")) (#3879) * use WARPX_ABORT_WITH_MSG instead of amrex::Abort(Utils::TextMsg::Err(msg)) [WIP] * use WARPX_ABORT_WITH_MESSAGE * fix typo * fix missing parenthesis * remove spaces to prevent automatic text wrapping * remove wrong parenthesis --- Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp') diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp index 0ef5571a1..a155b8f71 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveECTRho.cpp @@ -74,8 +74,8 @@ void FiniteDifferenceSolver::EvolveRhoCartesianECT ( #ifdef AMREX_USE_EB #if !(defined(WARPX_DIM_3D) || defined(WARPX_DIM_XZ)) - amrex::Abort(Utils::TextMsg::Err( - "EvolveRhoCartesianECT: Embedded Boundaries are only implemented in 3D and XZ")); + WARPX_ABORT_WITH_MESSAGE( + "EvolveRhoCartesianECT: Embedded Boundaries are only implemented in 3D and XZ"); #endif amrex::LayoutData* cost = WarpX::getCosts(lev); -- cgit v1.2.3