diff options
author | 2022-05-17 09:58:22 +0200 | |
---|---|---|
committer | 2022-05-17 09:58:22 +0200 | |
commit | 724a0e061274d4eac5daed409933fe073899eda7 (patch) | |
tree | a41e84351288e83242ae897fcbb44356d7dc6f9d /Source/FieldSolver/SpectralSolver/WrapFFTW.cpp | |
parent | 8581ed36ae2b9c4ad8fb983a3f299c9167611ab7 (diff) | |
download | WarpX-724a0e061274d4eac5daed409933fe073899eda7.tar.gz WarpX-724a0e061274d4eac5daed409933fe073899eda7.tar.zst WarpX-724a0e061274d4eac5daed409933fe073899eda7.zip |
Use uniform error message formatting in more source files (#2964)
* use WARPX_ALWAYS_ASSERT_WITH_MESSAGE instead of Abort()
* fix bug
* Update Source/WarpX.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* use more uniform text formatting
* fixed bug
* fixed bug
* using Utils::TextMsg in more files
* fixed bug
* use Utils::TextMsg in more files
* fixed bug
* use Utils::TextMsg in more files
* fixed last merge conflict
* fixed bug
* fix indentation
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/WrapFFTW.cpp')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/WrapFFTW.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp index 57a0fad04..8159e53c3 100644 --- a/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp +++ b/Source/FieldSolver/SpectralSolver/WrapFFTW.cpp @@ -7,6 +7,8 @@ #include "AnyFFT.H" +#include "Utils/TextMsg.H" + #include <AMReX.H> #include <AMReX_IntVect.H> #include <AMReX_REAL.H> @@ -52,7 +54,8 @@ namespace AnyFFT fft_plan.m_plan = VendorCreatePlanR2C2D( real_size[1], real_size[0], real_array, complex_array, FFTW_ESTIMATE); } else { - amrex::Abort("only dim=2 and dim=3 have been implemented"); + amrex::Abort(Utils::TextMsg::Err( + "only dim=2 and dim=3 have been implemented")); } } else if (dir == direction::C2R){ if (dim == 3) { @@ -62,7 +65,8 @@ namespace AnyFFT fft_plan.m_plan = VendorCreatePlanC2R2D( real_size[1], real_size[0], complex_array, real_array, FFTW_ESTIMATE); } else { - amrex::Abort("only dim=2 and dim=3 have been implemented. Should be easy to add dim=1."); + amrex::Abort(Utils::TextMsg::Err( + "only dim=2 and dim=3 have been implemented. Should be easy to add dim=1.")); } } |