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 --- .../SpectralAlgorithms/PsatdAlgorithmRZ.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp index 5b024b425..ee83ddce7 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp @@ -58,20 +58,20 @@ PsatdAlgorithmRZ::PsatdAlgorithmRZ (SpectralKSpaceRZ const & spectral_kspace, if (time_averaging && J_in_time != JInTime::Linear) { - amrex::Abort(Utils::TextMsg::Err( - "RZ PSATD: psatd.do_time_averaging=1 implemented only with psatd.J_in_time=linear")); + WARPX_ABORT_WITH_MESSAGE( + "RZ PSATD: psatd.do_time_averaging=1 implemented only with psatd.J_in_time=linear"); } if (dive_cleaning && J_in_time != JInTime::Linear) { - amrex::Abort(Utils::TextMsg::Err( - "RZ PSATD: warpx.do_dive_cleaning=1 implemented only with psatd.J_in_time=linear")); + WARPX_ABORT_WITH_MESSAGE( + "RZ PSATD: warpx.do_dive_cleaning=1 implemented only with psatd.J_in_time=linear"); } if (divb_cleaning && J_in_time != JInTime::Linear) { - amrex::Abort(Utils::TextMsg::Err( - "RZ PSATD: warpx.do_divb_cleaning=1 implemented only with psatd.J_in_time=linear")); + WARPX_ABORT_WITH_MESSAGE( + "RZ PSATD: warpx.do_divb_cleaning=1 implemented only with psatd.J_in_time=linear"); } } @@ -491,6 +491,6 @@ PsatdAlgorithmRZ::CurrentCorrection (SpectralFieldDataRZ& field_data) void PsatdAlgorithmRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/) { - amrex::Abort(Utils::TextMsg::Err( - "Vay deposition not implemented in RZ geometry")); + WARPX_ABORT_WITH_MESSAGE( + "Vay deposition not implemented in RZ geometry"); } -- cgit v1.2.3