aboutsummaryrefslogtreecommitdiff
path: root/src/Write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Write.c')
-rw-r--r--src/Write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Write.c b/src/Write.c
index ccd824a..7152919 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -202,7 +202,7 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias)
}
assert (CCTK_VarTypeSize (gdata.vartype) <= imax);
}
- total_hsize = hsize[0] * hsize[1] * CCTK_VarTypeSize (gdata.vartype);
+ total_hsize = hsize[0] * hsize[1] * CCTK_VarTypeSize (htype);
assert (total_hsize >= 0);
if (total_hsize <= 0)
{