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/PsatdAlgorithmJLinearInTime.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp index ecdd6169c..27db744d7 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp @@ -430,8 +430,8 @@ void PsatdAlgorithmJLinearInTime::CurrentCorrection (SpectralFieldData& field_da BL_PROFILE("PsatdAlgorithmJLinearInTime::CurrentCorrection"); amrex::ignore_unused(field_data); - amrex::Abort(Utils::TextMsg::Err( - "Current correction not implemented for multi-J PSATD algorithm")); + WARPX_ABORT_WITH_MESSAGE( + "Current correction not implemented for multi-J PSATD algorithm"); } void @@ -441,8 +441,8 @@ PsatdAlgorithmJLinearInTime::VayDeposition (SpectralFieldData& field_data) BL_PROFILE("PsatdAlgorithmJLinearInTime::VayDeposition()"); amrex::ignore_unused(field_data); - amrex::Abort(Utils::TextMsg::Err( - "Vay deposition not implemented for multi-J PSATD algorithm")); + WARPX_ABORT_WITH_MESSAGE( + "Vay deposition not implemented for multi-J PSATD algorithm"); } #endif // WARPX_USE_PSATD -- cgit v1.2.3