diff options
author | goodale <goodale@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-10-21 14:22:59 +0000 |
---|---|---|
committer | goodale <goodale@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-10-21 14:22:59 +0000 |
commit | 8cddb3fc074498571f48de051ccfdd18ef0bd75c (patch) | |
tree | 8aa49f61762bde0a56fcca2cc9c1a12ddb3e9a64 /src/RecoverGH.c | |
parent | 0367bdb43b8e3c001033ae19f8bbc0f07568c550 (diff) |
#if 0ing out more references to old timer stuff.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@55 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/RecoverGH.c')
-rw-r--r-- | src/RecoverGH.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/RecoverGH.c b/src/RecoverGH.c index 82ba282..a8fd02b 100644 --- a/src/RecoverGH.c +++ b/src/RecoverGH.c @@ -81,7 +81,9 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from) char msg [512]; pGH *pughGH; ioGH *ioUtilGH; +#if 0 cTimer total_time, dataset_time, param_time; +#endif #ifdef MPI CCTK_INT info [3]; #endif @@ -101,12 +103,14 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from) nprocs = CCTK_nProcs (GH); myproc = CCTK_MyProc (GH); +#if 0 /* initialize timers */ CactusResetTimer (&total_time); CactusResetTimer (&dataset_time); CactusResetTimer (¶m_time); CactusStartTimer (&total_time); +#endif /* Examine base file to find whether recovering from * one (recombined) file or from multiple files @@ -262,11 +266,14 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from) printf ("Recovering %schunked data with ioproc %d, ioproc_every %d.\n", file_unchunked ? "un" : "", file_ioproc, file_ioproc_every); +#if 0 CactusStartTimer (&dataset_time); +#endif IOFlexIO_RestoreIEEEIOfile (GH, ifp, file_ioproc, file_ioproc_every, file_unchunked); +#if 0 CactusStopTimer (&dataset_time); - +#endif /* Close the file. */ if (myproc == file_ioproc) { if (verbose) @@ -276,7 +283,9 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from) if (called_from == CP_RECOVER_DATA) { /* Must read in parameters and scalars on all processors. */ +#if 0 CactusStartTimer (¶m_time); +#endif for (proc = file_ioproc; proc < file_ioproc+file_ioproc_every && proc < nprocs; proc++) { @@ -358,11 +367,14 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from) /* Synchronise all processors */ CCTK_Barrier (GH); } +#if 0 CactusStopTimer (¶m_time); +#endif } /* print timing output */ if (verbose && called_from == CP_RECOVER_DATA && myproc == 0) { +#if 0 printf ( "----------------------------------------------------------------\n"); /*** FIXME: choose right component of basic[] ***/ @@ -372,6 +384,7 @@ int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from) param_time.total.basic [0]); printf ("Time to recover from checkpoint: %10.3f sec\n", total_time.total.basic [0]); +#endif } return (0); |