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 --- .../SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp index 217998d18..b8bdfdbed 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp @@ -405,15 +405,15 @@ void PsatdAlgorithmPml::InitializeSpectralCoefficients ( void PsatdAlgorithmPml::CurrentCorrection (SpectralFieldData& /*field_data*/) { - amrex::Abort(Utils::TextMsg::Err( - "Current correction not implemented for PML PSATD")); + WARPX_ABORT_WITH_MESSAGE( + "Current correction not implemented for PML PSATD"); } void PsatdAlgorithmPml::VayDeposition (SpectralFieldData& /*field_data*/) { - amrex::Abort(Utils::TextMsg::Err( - "Vay deposition not implemented for PML PSATD")); + WARPX_ABORT_WITH_MESSAGE( + "Vay deposition not implemented for PML PSATD"); } #endif // WARPX_USE_PSATD -- cgit v1.2.3