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/MacroscopicEvolveE.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp') diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp index 487ab0652..ffa9fbfc8 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp +++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp @@ -47,8 +47,8 @@ void FiniteDifferenceSolver::MacroscopicEvolveE ( // but we compile code for each algorithm, using templates) #ifdef WARPX_DIM_RZ amrex::ignore_unused(Efield, Bfield, Jfield, edge_lengths, dt, macroscopic_properties); - amrex::Abort(Utils::TextMsg::Err( - "currently macro E-push does not work for RZ")); + + WARPX_ABORT_WITH_MESSAGE("currently macro E-push does not work for RZ"); #else WARPX_ALWAYS_ASSERT_WITH_MESSAGE( m_grid_type != GridType::Collocated, "Macroscopic E field solver does not work on collocated grids"); @@ -86,8 +86,8 @@ void FiniteDifferenceSolver::MacroscopicEvolveE ( } } else { - amrex::Abort(Utils::TextMsg::Err( - "MacroscopicEvolveE: Unknown algorithm")); + WARPX_ABORT_WITH_MESSAGE( + "MacroscopicEvolveE: Unknown algorithm"); } #endif -- cgit v1.2.3