From 71005b3d8a11af2484d891b043cbf569152ab93b Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 27 Jan 2021 01:27:52 +0100 Subject: Replace an always false test with an abort (#1655) * replace always false test with abort * fix bug --- Source/Utils/WarpXUtil.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Utils/WarpXUtil.cpp') diff --git a/Source/Utils/WarpXUtil.cpp b/Source/Utils/WarpXUtil.cpp index c90850536..53294a3f3 100644 --- a/Source/Utils/WarpXUtil.cpp +++ b/Source/Utils/WarpXUtil.cpp @@ -272,9 +272,8 @@ getWithParser (const amrex::ParmParse& a_pp, char const * const str, amrex::Real void CheckGriddingForRZSpectral () { #ifndef WARPX_DIM_RZ - AMREX_ALWAYS_ASSERT_WITH_MESSAGE(false, - "CheckGriddingForRZSpectral: WarpX was not built with RZ geometry."); -#endif + amrex::Abort("CheckGriddingForRZSpectral: WarpX was not built with RZ geometry."); +#else ParmParse pp("algo"); int maxwell_solver_id = GetAlgorithmInteger(pp, "maxwell_solver"); @@ -347,6 +346,7 @@ void CheckGriddingForRZSpectral () mg[0] /= 2; } pp_amr.addarr("max_grid_size_y", mg); +#endif } namespace WarpXUtilMsg{ -- cgit v1.2.3