diff options
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 12f7ecb7b..c396818cd 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -224,9 +224,10 @@ FlushFormatCheckpoint::WriteDMaps (const std::string& dir, int nlev) const DMFile.flush(); DMFile.close(); - if (!DMFile.good()) { - amrex::Abort("FlushFormatCheckpoint::WriteDMaps: problem writing DMFile"); - } + WARPX_ALWAYS_ASSERT_WITH_MESSAGE( + DMFile.good(), + "FlushFormatCheckpoint::WriteDMaps: problem writing DMFile" + ); } } } |