aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII/src
diff options
context:
space:
mode:
authoreschnett <>2001-03-18 21:37:00 +0000
committereschnett <>2001-03-18 21:37:00 +0000
commitd3ae8e4b27664bbc9210fa49f58ceffe4336f7c1 (patch)
tree5c1657bb027d9b5d3e0758b24a4a86281baa673b /Carpet/CarpetIOASCII/src
parent3c7bfec92c24c4ddbda2120feae35c34deff37d7 (diff)
Added HydroToy, the counterpart of SpaceTimeToy.
darcs-hash:20010318213704-f6438-25fa67cf10277b9aed6ee4c2addb1899ad6e21c7.gz
Diffstat (limited to 'Carpet/CarpetIOASCII/src')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc
index 71798fd04..f76f5e2e5 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -22,7 +22,7 @@
#include "ioascii.hh"
-static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.9 2001/03/18 05:20:24 eschnett Exp $";
+static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.10 2001/03/18 22:37:04 eschnett Exp $";
@@ -233,7 +233,7 @@ int CarpetIOASCII<outdim>
struct stat fileinfo;
if (! IOUtil_RestartFromRecovery(cgh)
|| stat(filename, &fileinfo)!=0) {
- ofstream file(filename, ios::trunc);
+ ofstream file(filename, ios::out | ios::trunc);
assert (file.good());
file << "# " << varname;
for (int d=0; d<outdim; ++d) {