We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3dc68f + a8d1f57 commit 3c25d76Copy full SHA for 3c25d76
2 files changed
.gitignore
@@ -25,3 +25,4 @@ src/exp
25
src/user/CylindricalDisk.cc
26
src/user/EllipsoidForce.cc
27
src/user/SLSphere.cc
28
+_codeql_detected_source_root
src/OutHDF5.cc
@@ -193,13 +193,15 @@ void OutHDF5::initialize()
193
else {
194
std::ostringstream fname;
195
196
- if (chkpt)
+ if (chkpt) {
197
fname << outdir
198
- << "checkpoint_" << runtag << ".1";
199
- else
+ << "checkpoint_" << runtag;
+ if (numprocs>1) fname << ".1";
200
+ } else {
201
202
<< filename << "_" << setw(5) << setfill('0') << nbeg
203
<< ".1";
204
+ }
205
206
std::filesystem::path file_path = fname.str();
207
0 commit comments