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/WrapRocFFT.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/WrapRocFFT.cpp')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp b/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp index 54c96762a..66c9c6c50 100644 --- a/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp +++ b/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp @@ -7,6 +7,8 @@ #include "AnyFFT.H" +#include "Utils/TextMsg.H" + namespace AnyFFT { @@ -16,7 +18,8 @@ namespace AnyFFT void assert_rocfft_status (std::string const& name, rocfft_status status) { if (status != rocfft_status_success) { - amrex::Abort(name + " failed! Error: " + rocfftErrorToString(status)); + amrex::Abort(Utils::TextMsg::Err( + name + " failed! Error: " + rocfftErrorToString(status))); } } } @@ -88,7 +91,8 @@ namespace AnyFFT (void**)&(fft_plan.m_real_array), // out execinfo); } else { - amrex::Abort("direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R"); + amrex::Abort(Utils::TextMsg::Err( + "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R")); } assert_rocfft_status("rocfft_execute", result); |