diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2003-10-23 10:54:35 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2003-10-23 10:54:35 +0000 |
commit | 7cecc5d27d922318ed3f91da65574916bfec0b85 (patch) | |
tree | ce478a6c5cf136bcbc70ae34801bf2a912f0faa5 /src | |
parent | 58afc0ae5817d7ace4746aba37358055514a5100 (diff) |
Fix for recovery of grid scalars: compare their dimension against 0.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@291 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src')
-rw-r--r-- | src/RestoreFile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/RestoreFile.c b/src/RestoreFile.c index 688c926..dbc1351 100644 --- a/src/RestoreFile.c +++ b/src/RestoreFile.c @@ -541,6 +541,10 @@ static int GetCommonAttributes (cGH *GH, IOFile fid, int unchunked, int *vindex, } /* verify the dims and sizes */ + if (group_static_data.grouptype == CCTK_SCALAR) + { + rank_stored = 0; + } flag = group_static_data.dim != rank_stored; if (group_static_data.grouptype == CCTK_SCALAR) { |