From 1c6f1bf24513b4e56f640eea402fa8223ea1c667 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 1 May 2023 18:25:01 +0200 Subject: Use WARPX_ABORT_WITH_MESSAGE("msg") instead of amrex::Abort(Utils::TextMsg::Err("msg")) (#3879) * use WARPX_ABORT_WITH_MSG instead of amrex::Abort(Utils::TextMsg::Err(msg)) [WIP] * use WARPX_ABORT_WITH_MESSAGE * fix typo * fix missing parenthesis * remove spaces to prevent automatic text wrapping * remove wrong parenthesis --- Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp') diff --git a/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp b/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp index 66c9c6c50..0d8246c09 100644 --- a/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp +++ b/Source/FieldSolver/SpectralSolver/WrapRocFFT.cpp @@ -18,8 +18,8 @@ namespace AnyFFT void assert_rocfft_status (std::string const& name, rocfft_status status) { if (status != rocfft_status_success) { - amrex::Abort(Utils::TextMsg::Err( - name + " failed! Error: " + rocfftErrorToString(status))); + WARPX_ABORT_WITH_MESSAGE( + name + " failed! Error: " + rocfftErrorToString(status)); } } } @@ -91,8 +91,8 @@ namespace AnyFFT (void**)&(fft_plan.m_real_array), // out execinfo); } else { - amrex::Abort(Utils::TextMsg::Err( - "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R")); + WARPX_ABORT_WITH_MESSAGE( + "direction must be AnyFFT::direction::R2C or AnyFFT::direction::C2R"); } assert_rocfft_status("rocfft_execute", result); -- cgit v1.2.3