diff options
author | 2021-01-27 01:27:52 +0100 | |
---|---|---|
committer | 2021-01-27 01:27:52 +0100 | |
commit | 71005b3d8a11af2484d891b043cbf569152ab93b (patch) | |
tree | 729f25418dcb2e87c41426884d1cd425a81b1a48 /Source/Utils/WarpXUtil.cpp | |
parent | 4d287ed156e211e08c0d4f8ddbaf2c6984e7727a (diff) | |
download | WarpX-71005b3d8a11af2484d891b043cbf569152ab93b.tar.gz WarpX-71005b3d8a11af2484d891b043cbf569152ab93b.tar.zst WarpX-71005b3d8a11af2484d891b043cbf569152ab93b.zip |
Replace an always false test with an abort (#1655)
* replace always false test with abort
* fix bug
Diffstat (limited to 'Source/Utils/WarpXUtil.cpp')
-rw-r--r-- | Source/Utils/WarpXUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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{ |