aboutsummaryrefslogtreecommitdiff
path: root/src/RecoverGH.c
diff options
context:
space:
mode:
authortradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>1999-07-22 17:58:44 +0000
committertradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>1999-07-22 17:58:44 +0000
commitf2adb19bfb1515ef99c702be8970b954951857f8 (patch)
tree95b6e8bde994db91926fc6975979af55c73ca560 /src/RecoverGH.c
parent509db8d8789f68e6d179d20f0ed28de5cdf3b538 (diff)
Always register IO methods in setup so that one can call them via
CCTK_OutputVarAsByMethod. Store names of output files in a database instead of a fixed array, use the alias name as search index. Fix some compiler warnings. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@19 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/RecoverGH.c')
-rw-r--r--src/RecoverGH.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/RecoverGH.c b/src/RecoverGH.c
index 8978ae4..f841516 100644
--- a/src/RecoverGH.c
+++ b/src/RecoverGH.c
@@ -69,7 +69,7 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from)
DECLARE_CCTK_PARAMETERS
IOFile ifp;
- char ftmp [1024], fname [1024];
+ char fname [1024];
int proc, nprocs, myproc;
int index;
int is_IEEEIO_file;
@@ -88,6 +88,12 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from)
#endif
+ /* just to make the compiler happy */
+ ifp = (IOFile) -1;
+ is_IEEEIO_file = 0;
+ file_ioproc_every = 0;
+ file_unchunked = 0;
+
/* Get the handles for PUGH and IOUtil extensions */
pughGH = (pGH *) GH->extensions [CCTK_GHExtensionHandle ("PUGH")];
ioUtilGH = (ioGH *) GH->extensions [CCTK_GHExtensionHandle ("IO")];
@@ -330,11 +336,11 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from)
printf (
"----------------------------------------------------------------\n");
/*** FIXME: choose right component of basic[] ***/
- printf ("Time to restore data: %10.3lf sec\n",
+ printf ("Time to restore data: %10.3f sec\n",
dataset_time.total.basic [0]);
- printf ("Time to restore parameters: %10.3lf sec\n",
+ printf ("Time to restore parameters: %10.3f sec\n",
param_time.total.basic [0]);
- printf ("Time to recover from checkpoint: %10.3lf sec\n",
+ printf ("Time to recover from checkpoint: %10.3f sec\n",
total_time.total.basic [0]);
}