From d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 31 May 2022 02:35:30 +0200 Subject: Use Utils::TextMsg::Err and WARPX_ALWAYS_ASSERT_WITH_MESSAGE in more files (#3117) * use formatted error messages * fixed bug * fixed bug * fixed bugs * fixed bug --- .../SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 299cb29bf..30cc90549 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp @@ -430,7 +430,8 @@ void PsatdAlgorithmJLinearInTime::CurrentCorrection (SpectralFieldData& field_da BL_PROFILE("PsatdAlgorithmJLinearInTime::CurrentCorrection"); amrex::ignore_unused(field_data); - amrex::Abort("Current correction not implemented for multi-J PSATD algorithm"); + amrex::Abort(Utils::TextMsg::Err( + "Current correction not implemented for multi-J PSATD algorithm")); } void @@ -440,7 +441,8 @@ PsatdAlgorithmJLinearInTime::VayDeposition (SpectralFieldData& field_data) BL_PROFILE("PsatdAlgorithmJLinearInTime::VayDeposition()"); amrex::ignore_unused(field_data); - amrex::Abort("Vay deposition not implemented for multi-J PSATD algorithm"); + amrex::Abort(Utils::TextMsg::Err( + "Vay deposition not implemented for multi-J PSATD algorithm")); } #endif // WARPX_USE_PSATD -- cgit v1.2.3