aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-10-03 23:39:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-10-03 23:39:00 +0000
commit630bfcfd2b7001b0b7312a3988cb3cba369e8ebc (patch)
tree1114a39612ef647a27a21802a661c905cbd366d9 /Carpet/CarpetIOASCII
parentdc8bf7638b934fc697b939c8baa74ce21ec2e91a (diff)
CarpetIOASCII: Do not output map number for grid arrays
Do not output map number for grid arrays or grid scalars, since they always have only a single map. darcs-hash:20061003233935-dae7b-d35826309fc637ac1aa05c3bf63e317142c03929.gz
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc
index 9f841d4f2..e7046542a 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -644,10 +644,11 @@ namespace CarpetIOASCII {
// Invent a file name
ostringstream filenamebuf;
- filenamebuf << my_out_dir << "/" << alias << ".";
- if (maps > 1) {
- filenamebuf << Carpet::map << ".";
+ filenamebuf << my_out_dir << "/" << alias;
+ if (maps > 1 and grouptype == CCTK_GF) {
+ filenamebuf << "." << Carpet::map;
}
+ filenamebuf << ".";
if (new_filename_scheme) {
for (int d=0; d<outdim; ++d) {
const char* const coords = "xyzd";