diff options
author | tradke <> | 2004-07-07 15:09:00 +0000 |
---|---|---|
committer | tradke <> | 2004-07-07 15:09:00 +0000 |
commit | bdc4694140c2af44b2b574c458bf45729b6eb0b7 (patch) | |
tree | 291ca17fb10de7970f4314db08639f2d3ffaa30e /Carpet | |
parent | c49200e8163145642dc31b9ff77ce773b41db295 (diff) |
When parsing out3D_vars and in3D_vars, print a level-2 warning if a
group/variable name has an options string appended.
CarpetIOHDF5 doesn't support any individual I/O options (yet).
darcs-hash:20040707150917-1d9bf-ba275c052e23fe48303b41af7c8ea1d4da8ff296.gz
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/iohdf5utils.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Carpet/CarpetIOHDF5/src/iohdf5utils.cc b/Carpet/CarpetIOHDF5/src/iohdf5utils.cc index 7f422fb34..5545a3563 100644 --- a/Carpet/CarpetIOHDF5/src/iohdf5utils.cc +++ b/Carpet/CarpetIOHDF5/src/iohdf5utils.cc @@ -17,7 +17,7 @@ #include "cctk_Parameters.h" extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/iohdf5utils.cc,v 1.7 2004/07/07 11:01:05 tradke Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/iohdf5utils.cc,v 1.8 2004/07/07 17:09:17 tradke Exp $"; CCTK_FILEVERSION(Carpet_CarpetIOHDF5_iohdf5utils_cc); } @@ -56,11 +56,18 @@ namespace CarpetIOHDF5 { return flags.at(vindex); } - void SetFlag (int index, const char* optstring, void* arg) + void SetFlag (int vindex, const char* optstring, void* arg) { - optstring = optstring; + if (optstring) + { + char *fullname = CCTK_FullName (vindex); + CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING, + "Option string '%s' will be ignored for HDF5 output of " + "variable '%s'", optstring, fullname); + free (fullname); + } vector<bool>& flags = *(vector<bool>*)arg; - flags.at(index) = true; + flags.at(vindex) = true; } |