From d3ae8e4b27664bbc9210fa49f58ceffe4336f7c1 Mon Sep 17 00:00:00 2001 From: eschnett <> Date: Sun, 18 Mar 2001 21:37:00 +0000 Subject: Added HydroToy, the counterpart of SpaceTimeToy. darcs-hash:20010318213704-f6438-25fa67cf10277b9aed6ee4c2addb1899ad6e21c7.gz --- Carpet/CarpetIOASCII/src/ioascii.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Carpet/CarpetIOASCII/src') 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 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