From 092da46753e00c6a6f30cd845dc5bb8a32aa55ad Mon Sep 17 00:00:00 2001 From: schnetter Date: Wed, 29 Oct 2003 15:03:26 +0000 Subject: 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 --- src/RestoreFile.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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); -- cgit v1.2.3