diff options
Diffstat (limited to 'src/DumpVar.c')
-rw-r--r-- | src/DumpVar.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index c77c9d8..33ec428 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -4,12 +4,11 @@ #include "cctk.h" #include "cctk_Parameters.h" -#include "CactusBase/IOUtil/src/ioGH.h" #include "CactusPUGH/PUGHSlab/src/PUGHSlab.h" #include "IOJpeg.h" int IOJpeg_Output(cGH *GH, int index, int timelevel, CCTK_REAL *data, - int sdim, int *hsize, int vtype, FILE *fid); + int sdim, int *hsize, int vtype, FILE *fid); int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *fid) @@ -59,7 +58,7 @@ int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *f { char *fullname = CCTK_FullName (index); CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, - "No 0-dim extraction possible: '%s'", fullname); + "No 0-dim extraction possible: '%s'", fullname); free (fullname); return (-1); } @@ -92,10 +91,10 @@ int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *f if (fid) { if (IOJpeg_Output(GH, index, timelevel, data, - geo->sdim, hsizes, vtype, fid)<0) { + geo->sdim, hsizes, vtype, fid)<0) { char *fullname = CCTK_FullName (index); CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, - "IOJpeg_Output failed for variable '%s'", fullname); + "IOJpeg_Output failed for variable '%s'", fullname); free (fullname); return (-1); } @@ -115,7 +114,7 @@ int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *f int IOJpeg_Output(cGH *GH, int index, int timelevel, CCTK_REAL *data, - int sdim, int *hsize, int vtype, FILE *fid) + int sdim, int *hsize, int vtype, FILE *fid) { DECLARE_CCTK_PARAMETERS @@ -134,28 +133,27 @@ int IOJpeg_Output(cGH *GH, int index, int timelevel, CCTK_REAL *data, int reduction_handle,ierr; reduction_handle = CCTK_ReductionHandle ("maximum"); ierr = CCTK_Reduce (GH, 0, reduction_handle, 1, - CCTK_VARIABLE_REAL,&max, 1, index); + CCTK_VARIABLE_REAL,&max, 1, index); reduction_handle = CCTK_ReductionHandle ("minimum"); ierr = CCTK_Reduce (GH, 0, reduction_handle, 1, - CCTK_VARIABLE_REAL,&min, 1, index); + CCTK_VARIABLE_REAL,&min, 1, index); } AutoColorDataSlice(hsize[0], - hsize[1], - data, - dataout, - min, - max, - colormap_bias, - colormap_factor); + hsize[1], + data, + dataout, + min, + max, + colormap_bias, + colormap_factor); WriteJPEGToFileRGB(hsize[0], - hsize[1], - dataout, - colormap_quality, - fid); + hsize[1], + dataout, + colormap_quality, + fid); free(dataout); return(1); } - |