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/ReducedDiags/ParticleHistogram.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/ReducedDiags/ParticleHistogram.cpp')
-rw-r--r-- | Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp index 019ad6d3c..13dee37a8 100644 --- a/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp +++ b/Source/Diagnostics/ReducedDiags/ParticleHistogram.cpp @@ -86,8 +86,8 @@ ParticleHistogram::ParticleHistogram (std::string rd_name) } else if ( norm_string == "area_to_unity" ) { m_norm = NormalizationType::area_to_unity; } else { - Abort(Utils::TextMsg::Err( - "Unknown ParticleHistogram normalization type.")); + WARPX_ABORT_WITH_MESSAGE( + "Unknown ParticleHistogram normalization type."); } // get MultiParticleContainer class object @@ -103,8 +103,8 @@ ParticleHistogram::ParticleHistogram (std::string rd_name) } // if m_selected_species_id is not modified if ( m_selected_species_id == -1 ){ - Abort(Utils::TextMsg::Err( - "Unknown species for ParticleHistogram reduced diagnostic.")); + WARPX_ABORT_WITH_MESSAGE( + "Unknown species for ParticleHistogram reduced diagnostic."); } // Read optional filter |