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/PsatdAlgorithmPml.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 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 246609905..69d8dc401 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp @@ -8,6 +8,7 @@ #include "FieldSolver/SpectralSolver/SpectralFieldData.H" #include "FieldSolver/SpectralSolver/SpectralKSpace.H" +#include "Utils/TextMsg.H" #include "Utils/WarpXConst.H" #include "Utils/WarpX_Complex.H" @@ -404,13 +405,15 @@ void PsatdAlgorithmPml::InitializeSpectralCoefficients ( void PsatdAlgorithmPml::CurrentCorrection (SpectralFieldData& /*field_data*/) { - amrex::Abort("Current correction not implemented for PML PSATD"); + amrex::Abort(Utils::TextMsg::Err( + "Current correction not implemented for PML PSATD")); } void PsatdAlgorithmPml::VayDeposition (SpectralFieldData& /*field_data*/) { - amrex::Abort("Vay deposition not implemented for PML PSATD"); + amrex::Abort(Utils::TextMsg::Err( + "Vay deposition not implemented for PML PSATD")); } #endif // WARPX_USE_PSATD -- cgit v1.2.3