diff options
-rw-r--r-- | src/DumpVar.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 35920bb..93f7bbe 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -16,15 +16,11 @@ int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *f DECLARE_CCTK_PARAMETERS void *data=NULL; int *hsizes, slabstart[SLABSKEL_MAXDIM]; - IOJpegGH *ssGH; int vtype; int idim, vdim; int sdir[3] = {0,0,0}; - /* Get the handle for StreamedHDF5 extensions */ - ssGH = (IOJpegGH *) GH->extensions [CCTK_GHExtensionHandle ("IOJpeg")]; - /* Allocate buffer to hold actual slab sizes */ hsizes = (int*)malloc(geo->sdim*sizeof(int)); @@ -132,12 +128,12 @@ int IOJpeg_Output(cGH *GH, int index, int timelevel, CCTK_REAL *data, } else { - int reduction_handle,ierr; + int reduction_handle; reduction_handle = CCTK_ReductionHandle ("maximum"); - ierr = CCTK_Reduce (GH, 0, reduction_handle, 1, + CCTK_Reduce (GH, 0, reduction_handle, 1, CCTK_VARIABLE_REAL,&max, 1, index); reduction_handle = CCTK_ReductionHandle ("minimum"); - ierr = CCTK_Reduce (GH, 0, reduction_handle, 1, + CCTK_Reduce (GH, 0, reduction_handle, 1, CCTK_VARIABLE_REAL,&min, 1, index); } |