aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RestoreFile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/RestoreFile.c b/src/RestoreFile.c
index 09ecea3..16cd117 100644
--- a/src/RestoreFile.c
+++ b/src/RestoreFile.c
@@ -465,6 +465,13 @@ static int GetCommonAttributes (cGH *GH, IOFile fid, int unchunked, int *vindex,
return (-1);
}
FLEXIO_ERROR (IOreadAttribute (fid, i, &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 the iteration number */
i = IOreadAttributeInfo (fid, "iteration", &atype, &asize);