aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschnetter <schnetter@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2003-10-29 15:03:26 +0000
committerschnetter <schnetter@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2003-10-29 15:03:26 +0000
commit092da46753e00c6a6f30cd845dc5bb8a32aa55ad (patch)
tree9da1a3ac8284a34f03eaf3cdeba3616f5e15719c /src
parent13aea89ecef5589f2af9aa93376f182517c4665c (diff)
Be backwards compatible for group type codes when reading old checkpoint files.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@295 ebee0441-1374-4afa-a3b5-247f3ba15b9a
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);