aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
diff options
context:
space:
mode:
authorGravatar David Grote <grote1@llnl.gov> 2021-07-13 20:47:56 -0700
committerGravatar GitHub <noreply@github.com> 2021-07-13 20:47:56 -0700
commit59b91bdbc77dc57f92455a6f267bca862797355e (patch)
tree38a3aa290710db1aa4def8c336b481bae7c73152 /Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
parentb5d7a463a32af356d05458941fc43e6be76bce11 (diff)
downloadWarpX-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/FlushFormatPlotfile.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
index cbe5e2b3b..be1c70582 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatPlotfile.cpp
@@ -57,14 +57,14 @@ FlushFormatPlotfile::WriteToFile (
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, bool plot_raw_fields,
+ 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,
bool /*isBTD*/, int /*snapshotID*/, const amrex::Geometry& /*full_BTD_snapshot*/,
bool /*isLastBTDFlush*/) const
{
WARPX_PROFILE("FlushFormatPlotfile::WriteToFile()");
auto & warpx = WarpX::GetInstance();
- const std::string& filename = amrex::Concatenate(prefix, iteration[0]);
+ const std::string& filename = amrex::Concatenate(prefix, iteration[0], file_min_digits);
amrex::Print() << " Writing plotfile " << filename << "\n";
Vector<std::string> rfs;