diff options
author | 2023-06-22 05:18:31 -0700 | |
---|---|---|
committer | 2023-06-22 14:18:31 +0200 | |
commit | 830f780439a385c0639aa7784829bea5872bec3f (patch) | |
tree | e9b32763c48249186f64fc3ba65da9c7ce61e59b /Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp | |
parent | 089f0e08c4c5bded20ca5830f5fd44d56bcc491a (diff) | |
download | WarpX-830f780439a385c0639aa7784829bea5872bec3f.tar.gz WarpX-830f780439a385c0639aa7784829bea5872bec3f.tar.zst WarpX-830f780439a385c0639aa7784829bea5872bec3f.zip |
For ReducedDiags, write header on restart if file does not exist (#4022)
Diffstat (limited to 'Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp')
-rw-r--r-- | Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp b/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp index 294e78d36..c9ce3523f 100644 --- a/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp +++ b/Source/Diagnostics/ReducedDiags/ChargeOnEB.cpp @@ -59,7 +59,7 @@ ChargeOnEB::ChargeOnEB (std::string rd_name) if (ParallelDescriptor::IOProcessor()) { - if ( m_IsNotRestart ) + if ( m_write_header ) { // open file std::ofstream ofs{m_path + m_rd_name + "." + m_extension, std::ofstream::out}; |