aboutsummaryrefslogtreecommitdiff
path: root/src/RecoverVar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/RecoverVar.c')
-rw-r--r--src/RecoverVar.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/RecoverVar.c b/src/RecoverVar.c
index 1f80b5c..8724f7b 100644
--- a/src/RecoverVar.c
+++ b/src/RecoverVar.c
@@ -383,6 +383,13 @@ static int GetCommonAttributes (const cGH *GH,
/* verify group type, variable type, dims, sizes and ntimelevels */
READ_ATTRIBUTE (dataset, "grouptype", H5T_NATIVE_INT, &grouptype_stored);
+ /* be backwards compatible */
+ switch (grouptype_stored)
+ {
+ case 1: grouptype_stored = CCTK_SCALAR; break;
+ case 2: grouptype_stored = CCTK_GF; break;
+ case 3: grouptype_stored = CCTK_ARRAY; break;
+ }
READ_ATTRIBUTE (dataset, "ntimelevels", H5T_NATIVE_INT,&numtimelevels_stored);
/* get the group data */