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 --- .../SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp index 3b8609c03..ca85648ac 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp @@ -6,6 +6,7 @@ */ #include "PsatdAlgorithmPmlRZ.H" #include "FieldSolver/SpectralSolver/SpectralHankelTransform/HankelTransform.H" +#include "Utils/TextMsg.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" #include "WarpX.H" @@ -162,11 +163,13 @@ void PsatdAlgorithmPmlRZ::InitializeSpectralCoefficients (SpectralFieldDataRZ co void PsatdAlgorithmPmlRZ::CurrentCorrection (SpectralFieldDataRZ& /* field_data */) { - amrex::Abort("Current correction not implemented in RZ geometry PML"); + amrex::Abort(Utils::TextMsg::Err( + "Current correction not implemented in RZ geometry PML")); } void PsatdAlgorithmPmlRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/) { - amrex::Abort("Vay deposition not implemented in RZ geometry PML"); + amrex::Abort(Utils::TextMsg::Err( + "Vay deposition not implemented in RZ geometry PML")); } -- cgit v1.2.3