diff options
author | 2023-06-13 00:39:20 +0200 | |
---|---|---|
committer | 2023-06-12 15:39:20 -0700 | |
commit | 2289f4a24e6d0d6a5957f76dd6eed19f129860e6 (patch) | |
tree | 7f19698e8033c91fa4c441203a4f8e28513acb2d /Source/Utils/WarpXAlgorithmSelection.cpp | |
parent | ceef66ccd87d9eacdbc18f0ae777f6848e060c7f (diff) | |
download | WarpX-2289f4a24e6d0d6a5957f76dd6eed19f129860e6.tar.gz WarpX-2289f4a24e6d0d6a5957f76dd6eed19f129860e6.tar.zst WarpX-2289f4a24e6d0d6a5957f76dd6eed19f129860e6.zip |
Replace amrex::Abort with WARPX_ABORT_WITH_MESSAGE (#3965)
* replace amrex::Abort with WarpX macros
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* adding back missing include
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* use amrex::Abort in a GPU kernel
* bump precision
Diffstat (limited to 'Source/Utils/WarpXAlgorithmSelection.cpp')
-rw-r--r-- | Source/Utils/WarpXAlgorithmSelection.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Utils/WarpXAlgorithmSelection.cpp b/Source/Utils/WarpXAlgorithmSelection.cpp index 99c068fc0..cbe1deee3 100644 --- a/Source/Utils/WarpXAlgorithmSelection.cpp +++ b/Source/Utils/WarpXAlgorithmSelection.cpp @@ -8,6 +8,7 @@ */ #include "WarpX.H" #include "WarpXAlgorithmSelection.H" +#include "Utils/TextMsg.H" #include <AMReX.H> @@ -177,7 +178,7 @@ GetAlgorithmInteger( amrex::ParmParse& pp, const char* pp_search_key ){ algo_to_int = ReductionType_algo_to_int; } else { std::string pp_search_string = pp_search_key; - amrex::Abort("Unknown algorithm type: " + pp_search_string); + WARPX_ABORT_WITH_MESSAGE("Unknown algorithm type: " + pp_search_string); } // Check if the user-input is a valid key for the dictionary @@ -191,7 +192,7 @@ GetAlgorithmInteger( amrex::ParmParse& pp, const char* pp_search_key ){ error_message += " - " + valid_pair.first + "\n"; } } - amrex::Abort(error_message); + WARPX_ABORT_WITH_MESSAGE(error_message); } // If the input is a valid key, return the value @@ -209,7 +210,7 @@ GetFieldBCTypeInteger( std::string BCType ){ error_message += " - " + valid_pair.first + "\n"; } } - amrex::Abort(error_message); + WARPX_ABORT_WITH_MESSAGE(error_message); } // return FieldBCType_algo_to_int[BCType]; // This operator cannot be used for a const map return FieldBCType_algo_to_int.at(BCType); @@ -226,7 +227,7 @@ GetParticleBCTypeInteger( std::string BCType ){ error_message += " - " + valid_pair.first + "\n"; } } - amrex::Abort(error_message); + WARPX_ABORT_WITH_MESSAGE(error_message); } // return ParticleBCType_algo_to_enum[BCType]; // This operator cannot be used for a const map return ParticleBCType_algo_to_enum.at(BCType); |