diff options
author | 2023-05-01 18:25:01 +0200 | |
---|---|---|
committer | 2023-05-01 09:25:01 -0700 | |
commit | 1c6f1bf24513b4e56f640eea402fa8223ea1c667 (patch) | |
tree | 29967ef551e4632b757f41ac98e10b258692be71 /Source/Diagnostics/Diagnostics.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/Diagnostics/Diagnostics.cpp')
-rw-r--r-- | Source/Diagnostics/Diagnostics.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Diagnostics/Diagnostics.cpp b/Source/Diagnostics/Diagnostics.cpp index 8d6be27d3..e5b07f359 100644 --- a/Source/Diagnostics/Diagnostics.cpp +++ b/Source/Diagnostics/Diagnostics.cpp @@ -487,19 +487,19 @@ Diagnostics::InitBaseData () dynamic_cast<amrex::AmrMesh*>(const_cast<WarpX*>(&warpx)), m_diag_name); #else - amrex::Abort(Utils::TextMsg::Err( - "To use SENSEI in situ, compile with USE_SENSEI=TRUE")); + WARPX_ABORT_WITH_MESSAGE( + "To use SENSEI in situ, compile with USE_SENSEI=TRUE"); #endif } else if (m_format == "openpmd"){ #ifdef WARPX_USE_OPENPMD m_flush_format = std::make_unique<FlushFormatOpenPMD>(m_diag_name); #else - amrex::Abort(Utils::TextMsg::Err( - "To use openpmd output format, need to compile with USE_OPENPMD=TRUE")); + WARPX_ABORT_WITH_MESSAGE( + "To use openpmd output format, need to compile with USE_OPENPMD=TRUE"); #endif } else { - amrex::Abort(Utils::TextMsg::Err( - "unknown output format")); + WARPX_ABORT_WITH_MESSAGE( + "unknown output format"); } // allocate vector of buffers then allocate vector of levels for each buffer |