diff options
author | tradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668> | 2001-04-19 21:05:57 +0000 |
---|---|---|
committer | tradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668> | 2001-04-19 21:05:57 +0000 |
commit | 37d6c29790cb185ec28177168266c74b65d3e53a (patch) | |
tree | 453b398a6fc360c0490aa7df4998153b9da9a5a7 /src/DumpUtils.c | |
parent | b1227adab84e3e75b582815a81a329efbfc11f7e (diff) |
Add the Cactus version as an attribute to the global attributes group.
This is also used to distinguish checkpoint and data files which were
created before/after the recent changes to the timelevel naming scheme.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@23 7842ec3a-9562-4be5-9c5b-06ba18f2b668
Diffstat (limited to 'src/DumpUtils.c')
-rw-r--r-- | src/DumpUtils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/DumpUtils.c b/src/DumpUtils.c index 1a97f00..8c1a052 100644 --- a/src/DumpUtils.c +++ b/src/DumpUtils.c @@ -12,6 +12,7 @@ #include <stdlib.h> #include "cctk.h" +#include "cctk_Version.h" #include "cctk_Parameters.h" #include "CactusBase/IOUtil/src/ioGH.h" #include "CactusBase/IOUtil/src/ioutil_CheckpointRecovery.h" @@ -403,6 +404,7 @@ void IOHDF5Util_DumpGHExtensions (cGH *GH, int value; hid_t group; char buffer[128]; + const char *version; ioGH *ioUtilGH; ioHDF5UtilGH *myGH; @@ -432,6 +434,9 @@ void IOHDF5Util_DumpGHExtensions (cGH *GH, myGH->scalar_dataspace, 0, IOHDF5_REAL); WRITE_ATTRIBUTE ("cctk_iteration", &GH->cctk_iteration, group, myGH->scalar_dataspace, 0, H5T_NATIVE_INT); + version = CCTK_FullVersion (); + WRITE_ATTRIBUTE ("Cactus version", version, group, + myGH->scalar_dataspace, 0, myGH->IOHDF5_STRING); /* add the parameter filename and the creation date as file identification attributes */ |