diff options
author | 2022-05-31 02:35:30 +0200 | |
---|---|---|
committer | 2022-05-30 17:35:30 -0700 | |
commit | d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7 (patch) | |
tree | 0c785e2cc1853b30c33f3c732569a352b50b8bef /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp | |
parent | e267ac91316d5c590f3b73af20f4c5c567068e46 (diff) | |
download | WarpX-d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7.tar.gz WarpX-d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7.tar.zst WarpX-d5f61eafc3de4f15a02edcbb3a7b95abdc774ab7.zip |
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
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp index d2faecaa0..fec0ebc8f 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp @@ -5,6 +5,7 @@ * License: BSD-3-Clause-LBNL */ #include "PsatdAlgorithmRZ.H" +#include "Utils/TextMsg.H" #include "Utils/WarpXConst.H" #include "Utils/WarpXProfilerWrapper.H" #include "WarpX.H" @@ -54,17 +55,20 @@ PsatdAlgorithmRZ::PsatdAlgorithmRZ (SpectralKSpaceRZ const & spectral_kspace, if (time_averaging && !do_multi_J) { - amrex::Abort("RZ PSATD: psatd.do_time_averaging = 1 implemented only with warpx.do_multi_J = 1"); + amrex::Abort(Utils::TextMsg::Err( + "RZ PSATD: psatd.do_time_averaging = 1 implemented only with warpx.do_multi_J = 1")); } if (dive_cleaning && !do_multi_J) { - amrex::Abort("RZ PSATD: warpx.do_dive_cleaning = 1 implemented only with warpx.do_multi_J = 1"); + amrex::Abort(Utils::TextMsg::Err( + "RZ PSATD: warpx.do_dive_cleaning = 1 implemented only with warpx.do_multi_J = 1")); } if (divb_cleaning && !do_multi_J) { - amrex::Abort("RZ PSATD: warpx.do_divb_cleaning = 1 implemented only with warpx.do_multi_J = 1"); + amrex::Abort(Utils::TextMsg::Err( + "RZ PSATD: warpx.do_divb_cleaning = 1 implemented only with warpx.do_multi_J = 1")); } } @@ -481,5 +485,6 @@ PsatdAlgorithmRZ::CurrentCorrection (SpectralFieldDataRZ& field_data) void PsatdAlgorithmRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/) { - amrex::Abort("Vay deposition not implemented in RZ geometry"); + amrex::Abort(Utils::TextMsg::Err( + "Vay deposition not implemented in RZ geometry")); } |