aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII/src
diff options
context:
space:
mode:
authorschnetter <>2002-06-26 14:02:00 +0000
committerschnetter <>2002-06-26 14:02:00 +0000
commitca62c8a13964a6235e32ad290959bd57e6671f89 (patch)
tree76baa8f6532479ae40cd82829b839aeeb4dcec2f /Carpet/CarpetIOASCII/src
parentb0b6b579aefdeeb1a2ecdfeb3fee294c47ea7682 (diff)
Fixed bug in ASCII output that Scott Hawley pointed out to me. When
Fixed bug in ASCII output that Scott Hawley pointed out to me. When opening a file for appending, it is necessary to use "ios::app", because the file will be truncated otherwise. darcs-hash:20020626140216-07bb3-a32fb0601e63c2338439c2bd6a473c1fffd17653.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 50866eaab..36c848b53 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -28,7 +28,7 @@
#include "ioascii.hh"
-static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.32 2002/06/05 19:52:41 schnetter Exp $";
+static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.33 2002/06/26 16:02:16 schnetter Exp $";
CCTK_FILEVERSION(CarpetIOASCII_ioascii_cc)
@@ -272,7 +272,7 @@ int CarpetIOASCII<outdim>
}
}
if (! file.is_open()) {
- file.open (filename, ios::out | ios::ate);
+ file.open (filename, ios::out | ios::app);
assert (file.good());
}
file << setprecision(15);