diff options
author | 2021-09-24 12:44:37 -0700 | |
---|---|---|
committer | 2021-09-24 12:44:37 -0700 | |
commit | 4d28cb4b48984d5e8c96468a7ccd77d3900f6392 (patch) | |
tree | eea66dbf3c80627ad5ba7870a17c1db12993a175 /Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp | |
parent | a6026f5977dbc8c67ef2bb1edbfe645aace50241 (diff) | |
download | WarpX-4d28cb4b48984d5e8c96468a7ccd77d3900f6392.tar.gz WarpX-4d28cb4b48984d5e8c96468a7ccd77d3900f6392.tar.zst WarpX-4d28cb4b48984d5e8c96468a7ccd77d3900f6392.zip |
Restart: Handle Header File Read Errors (#2335)
* Restart: Handle Read Errors
`std::istringstream` does not throw automatically if errors occur.
This leads to silently skipped reads.
Enable throwing on all errors to avoid hard to debug follow-up errors.
* Fix: Write All Particle Containers
Forgot to write laser particle containers but then tried to read them
in.
The mass & charge of those are not essential for us to restore, but
it avoids confusion and extra logic if we just write them properly at
the general location.
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 9987913e2..73ec84d02 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -50,7 +50,7 @@ FlushFormatCheckpoint::WriteToFile ( // const int nlevels = finestLevel()+1; amrex::PreBuildDirectorHierarchy(checkpointname, default_level_prefix, nlev, true); - WriteWarpXHeader(checkpointname, particle_diags, geom); + WriteWarpXHeader(checkpointname, geom); WriteJobInfo(checkpointname); |