diff options
author | 2021-07-13 20:47:56 -0700 | |
---|---|---|
committer | 2021-07-13 20:47:56 -0700 | |
commit | 59b91bdbc77dc57f92455a6f267bca862797355e (patch) | |
tree | 38a3aa290710db1aa4def8c336b481bae7c73152 /Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp | |
parent | b5d7a463a32af356d05458941fc43e6be76bce11 (diff) | |
download | WarpX-59b91bdbc77dc57f92455a6f267bca862797355e.tar.gz WarpX-59b91bdbc77dc57f92455a6f267bca862797355e.tar.zst WarpX-59b91bdbc77dc57f92455a6f267bca862797355e.zip |
Diags: file_min_digits input parameter (#2083)
* Added file_min_digits input parameter
* Set default m_file_min_digits = 5
* Implemented file_min_digits in OpenPMD
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp')
-rw-r--r-- | Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp index 7477dfcd0..e66a18f08 100644 --- a/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp +++ b/Source/Diagnostics/FlushFormats/FlushFormatCheckpoint.cpp @@ -27,7 +27,8 @@ FlushFormatCheckpoint::WriteToFile ( const amrex::Vector<amrex::MultiFab>& /*mf*/, amrex::Vector<amrex::Geometry>& geom, const amrex::Vector<int> iteration, const double /*time*/, - const amrex::Vector<ParticleDiag>& particle_diags, int nlev, const std::string prefix, + const amrex::Vector<ParticleDiag>& particle_diags, int nlev, + const std::string prefix, int file_min_digits, bool /*plot_raw_fields*/, bool /*plot_raw_fields_guards*/, bool /*plot_raw_rho*/, bool /*plot_raw_F*/, @@ -42,7 +43,7 @@ FlushFormatCheckpoint::WriteToFile ( VisMF::Header::Version current_version = VisMF::GetHeaderVersion(); VisMF::SetHeaderVersion(amrex::VisMF::Header::NoFabHeader_v1); - const std::string& checkpointname = amrex::Concatenate(prefix,iteration[0]); + const std::string& checkpointname = amrex::Concatenate(prefix, iteration[0], file_min_digits); amrex::Print() << " Writing checkpoint " << checkpointname << "\n"; |