diff options
author | schnetter <> | 2003-03-17 09:24:00 +0000 |
---|---|---|
committer | schnetter <> | 2003-03-17 09:24:00 +0000 |
commit | 1a0df29dc7aef45da90b2f8735fccff1b2901e3d (patch) | |
tree | 88f7a5ff99f3cf978f389aa1d4743ba38017fc04 /Carpet | |
parent | aa8add328051aa1559444f3111eed54bc3b982f6 (diff) |
Output the grid variables in C instead of Fortran order, as this is
Output the grid variables in C instead of Fortran order, as this is
what gnuplot expects.
darcs-hash:20030317092449-07bb3-058193ab00a224b68974320df6339e772200dda3.gz
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index c51f85de7..af2351f58 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -30,7 +30,7 @@ #include "ioascii.hh" extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.44 2003/03/12 09:34:44 schnetter Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.45 2003/03/17 10:24:49 schnetter Exp $"; CCTK_FILEVERSION(Carpet_CarpetIOASCII_ioascii_cc); } @@ -741,8 +741,8 @@ namespace CarpetIOASCII { for (int d=0; d<DD; ++d) org1[dirs[d]] = ext.lower()[d]; if (gfext.contains(org1)) { - for (typename bbox<int,DD>::iterator it=ext.begin(); - it!=ext.end(); ++it) { + for (typename bbox<int,DD>::iteratorT it=ext.beginT(); + it!=ext.endT(); ++it) { vect<int,dim> index(org); for (int d=0; d<DD; ++d) index[dirs[d]] = (*it)[d]; os << time << " " << tl << " " << rl << " " << c << " " << ml @@ -767,7 +767,7 @@ namespace CarpetIOASCII { UnsupportedVarType(vi); } os << endl; - for (int d=0; d<DD; ++d) { + for (int d=DD-1; d>=0; --d) { if (index[dirs[d]]!=gfext.upper()[dirs[d]]) break; os << endl; } |