diff options
author | 2023-05-01 18:25:01 +0200 | |
---|---|---|
committer | 2023-05-01 09:25:01 -0700 | |
commit | 1c6f1bf24513b4e56f640eea402fa8223ea1c667 (patch) | |
tree | 29967ef551e4632b757f41ac98e10b258692be71 /Source/Filter/NCIGodfreyFilter.cpp | |
parent | a602c6e60ec8d6b728dfe7fe5e79ec191c906f57 (diff) | |
download | WarpX-1c6f1bf24513b4e56f640eea402fa8223ea1c667.tar.gz WarpX-1c6f1bf24513b4e56f640eea402fa8223ea1c667.tar.zst WarpX-1c6f1bf24513b4e56f640eea402fa8223ea1c667.zip |
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
Diffstat (limited to 'Source/Filter/NCIGodfreyFilter.cpp')
-rw-r--r-- | Source/Filter/NCIGodfreyFilter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Filter/NCIGodfreyFilter.cpp b/Source/Filter/NCIGodfreyFilter.cpp index 8e7c2bbda..ff8663325 100644 --- a/Source/Filter/NCIGodfreyFilter.cpp +++ b/Source/Filter/NCIGodfreyFilter.cpp @@ -38,8 +38,8 @@ NCIGodfreyFilter::NCIGodfreyFilter(godfrey_coeff_set coeff_set, amrex::Real cdto slen = {1,5,1}; #else amrex::ignore_unused(coeff_set, cdtodz, nodal_gather); - amrex::Abort(Utils::TextMsg::Err( - "NCIGodfreyFilter not implemented in 1D!")); + WARPX_ABORT_WITH_MESSAGE( + "NCIGodfreyFilter not implemented in 1D!"); #endif } @@ -78,8 +78,8 @@ void NCIGodfreyFilter::ComputeStencils(){ prestencil[i] = (1_rt-weight_right)*table_nci_godfrey_galerkin_Bx_By_Ez[index ][i] + weight_right *table_nci_godfrey_galerkin_Bx_By_Ez[index+1][i]; } else { - amrex::Abort(Utils::TextMsg::Err( - "m_coeff_set must be godfrey_coeff_set::Ex_Ey_Bz or godfrey_coeff_set::Bx_By_Ez")); + WARPX_ABORT_WITH_MESSAGE( + "m_coeff_set must be godfrey_coeff_set::Ex_Ey_Bz or godfrey_coeff_set::Bx_By_Ez"); } } else @@ -94,8 +94,8 @@ void NCIGodfreyFilter::ComputeStencils(){ prestencil[i] = (1_rt-weight_right)*table_nci_godfrey_momentum_Bx_By_Ez[index ][i] + weight_right *table_nci_godfrey_momentum_Bx_By_Ez[index+1][i]; } else { - amrex::Abort(Utils::TextMsg::Err( - "m_coeff_set must be godfrey_coeff_set::Ex_Ey_Bz or godfrey_coeff_set::Bx_By_Ez")); + WARPX_ABORT_WITH_MESSAGE( + "m_coeff_set must be godfrey_coeff_set::Ex_Ey_Bz or godfrey_coeff_set::Bx_By_Ez"); } } } @@ -138,6 +138,6 @@ void NCIGodfreyFilter::ComputeStencils(){ Gpu::synchronize(); #else - amrex::Abort(Utils::TextMsg::Err("NCIGodfreyFilter not implemented in 1D!")); + WARPX_ABORT_WITH_MESSAGE("NCIGodfreyFilter not implemented in 1D!"); #endif } |