diff options
author | Christian Reisswig <reisswig@tapir.caltech.edu> | 2010-08-29 08:01:41 -0700 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:25:18 +0000 |
commit | 7bf42423dc194da80ea2460fdc41e63dbc4140c1 (patch) | |
tree | d0dac6abbfffd94a046c38c740009a23c38ceb00 /Carpet | |
parent | ffa892c6279095067e48313d883bd66249b69e14 (diff) |
Make sure output file is not parsed when re-opened
for writing.
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetIONirvana/src/Output.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetIONirvana/src/Output.cc b/Carpet/CarpetIONirvana/src/Output.cc index 2f5b77ab1..2b105d793 100644 --- a/Carpet/CarpetIONirvana/src/Output.cc +++ b/Carpet/CarpetIONirvana/src/Output.cc @@ -120,7 +120,9 @@ int WriteVar (const cGH* const cctkGH, request, bbox, md); //cout << fullname << " " << cctkGH->cctk_iteration << endl; - CarpetN5 File(filename, dist::size(), false); + string past_checkpoint = ""; + const bool write_only = true; // this prevents the file-format to scan existing files + CarpetN5 File(filename, write_only, dist::size(), false, past_checkpoint); File.WriteMesh(md); File.WriteMesh(md, filenum); |