aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RestoreFile.c4
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)
{