aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Startup.c b/src/Startup.c
index e6b2775..fbef5bc 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -80,7 +80,7 @@ void IOStreamedHDF5_Terminate (const cGH *GH)
ioStreamedHDF5GH *myGH;
- myGH = (ioStreamedHDF5GH *) CCTK_GHExtension (GH, "IOStreamedHDF5");
+ myGH = CCTK_GHExtension (GH, "IOStreamedHDF5");
if (myGH)
{
/* close the data and checkpoint output sockets */
@@ -192,9 +192,9 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
/* allocate a new GH extension structure */
numvars = CCTK_NumVars ();
- myGH = (ioStreamedHDF5GH *) malloc (sizeof (ioStreamedHDF5GH));
- myGH->requests = (ioRequest **) calloc (numvars, sizeof (ioRequest *));
- myGH->out_last = (int *) malloc (numvars * sizeof (int));
+ myGH = malloc (sizeof (ioStreamedHDF5GH));
+ myGH->requests = calloc (numvars, sizeof (ioRequest *));
+ myGH->out_last = malloc (numvars * sizeof (int));
myGH->advertised_filename = NULL;
myGH->out_vars = strdup ("");
@@ -205,6 +205,15 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
myGH->out_last[i] = -1;
}
+ myGH->stop_on_parse_errors = strict_io_parameter_check;
+ if (! CCTK_Equals (verbose, "none"))
+ {
+ CCTK_INFO ("I/O Method 'IOStreamedHDF5' registered: streamed HDF5 output "
+ "of grid variables and hyperslabs thereof");
+ }
+ IOStreamedHDF5_CheckSteerableParameters (GH, myGH);
+ myGH->stop_on_parse_errors = 0;
+
/* only processor 0 is doing socket I/O */
myGH->data_socket = INVALID_SOCKET;
myproc = CCTK_MyProc (GH);