diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-30 07:37:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-07-30 07:37:00 +0000 |
commit | a45f00fcf947d825707a8e74cc7fcde57b8161d0 (patch) | |
tree | bc1dcb26d3a81c1182cdae2f842eadf595a65469 /Carpet/CarpetIOScalar/src | |
parent | 280f3796c40d5793982b67b6eb50c9a641652952 (diff) |
CarpetIOScalar: Prepend column numbers to column descriptions
Prepend column numbers to column descriptions in the header of the
files.
darcs-hash:20050730073713-891bb-b3588e78345c9ffacff6c314cd4f6869e4a42e04.gz
Diffstat (limited to 'Carpet/CarpetIOScalar/src')
-rw-r--r-- | Carpet/CarpetIOScalar/src/ioscalar.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Carpet/CarpetIOScalar/src/ioscalar.cc b/Carpet/CarpetIOScalar/src/ioscalar.cc index 1aa7382f2..9f1cd5470 100644 --- a/Carpet/CarpetIOScalar/src/ioscalar.cc +++ b/Carpet/CarpetIOScalar/src/ioscalar.cc @@ -325,13 +325,15 @@ namespace CarpetIOScalar { file << "#" << endl; } file << "# " << varname << " (" << alias << ")" << endl; - file << "# iteration time data" << endl; + file << "# 1:iteration 2:time 3:data" << endl; + int col = 3; if (one_file_per_group) { file << "# data columns:"; int const firstvar = CCTK_FirstVarIndexI(group); int const numvars = CCTK_NumVarsInGroupI(group); for (int n=firstvar; n<firstvar+numvars; ++n) { - file << " " << CCTK_VarName(n); + file << " " << col << ":" << CCTK_VarName(n); + col += CarpetSimpleMPIDatatypeLength (vartype); } file << endl; } |