diff options
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/src/Startup.c b/src/Startup.c index d7b60b5..de7cc84 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -107,6 +107,10 @@ static void *IOHDF5_SetupGH (tFleshConfig *config, ioHDF5GH *myGH; + /* suppress compiler warnings about unused variables */ + config = config; + convergence_level = convergence_level; + /* Register the IOHDF5 routines as a new IO method */ i = CCTK_RegisterIOMethod ("IOHDF5"); CCTK_RegisterIOMethodOutputGH (i, IOHDF5_OutputGH); @@ -122,9 +126,8 @@ static void *IOHDF5_SetupGH (tFleshConfig *config, numvars = CCTK_NumVars (); myGH = (ioHDF5GH *) malloc (sizeof (ioHDF5GH)); - myGH->do_output = (char *) malloc (numvars * sizeof (char)); myGH->out_last = (int *) malloc (numvars * sizeof (int)); - myGH->out_geo = (ioHDF5Geo_t *) malloc (numvars * sizeof (ioHDF5Geo_t)); + myGH->out_geo = (ioHDF5Geo_t **) calloc (numvars, sizeof (ioHDF5Geo_t *)); myGH->check_exisiting_objects = (char *) calloc (numvars, 1); myGH->cp_filename_list = (char **) calloc (checkpoint_keep, sizeof (char *)); myGH->cp_filename_index = 0; @@ -193,26 +196,3 @@ static void *IOHDF5_SetupGH (tFleshConfig *config, return (myGH); } - - -#if 0 -FIXME: is this code still needed ?? -void SliceCenterSetup (cGH *GH) -{ - DECLARE_CCTK_PARAMETERS - int i; - ioHDF5Geo_t geo_default; - ioHDF5GH *myGH; - - - myGH = (ioHDF5GH *) CCTK_GHExtension (GH, "IOHDF5"); - - IOHDF5Util_DefaultGeo (&geo_default); - - /* Set the default HDF5 slab geometry for slab with dimension -idim-*/ - for (i = 0; i < CCTK_NumVars (); i++) - { - myGH->out_geo[i] = geo_default; - } -} -#endif |