[cig-commits] commit: Make TimeStep always output
Mercurial
hg at geodynamics.org
Wed Feb 24 16:54:15 PST 2010
changeset: 776:6aad89cf361e
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Wed Feb 24 16:52:19 2010 -0800
files: Base/Context/src/AbstractContext.c
description:
Make TimeStep always output
diff -r baf7984a7f57 -r 6aad89cf361e Base/Context/src/AbstractContext.c
--- a/Base/Context/src/AbstractContext.c Wed Feb 24 16:25:47 2010 -0800
+++ b/Base/Context/src/AbstractContext.c Wed Feb 24 16:52:19 2010 -0800
@@ -859,14 +859,19 @@ void _AbstractContext_Execute_Hook( void
void _AbstractContext_Step( void* _context, double dt ) {
AbstractContext* self = (AbstractContext*)_context;
+ Bool enabled;
/* This will make it clear where the timestep starts when several procs
* running. Figure this 1 synchronisation is ok since we are likely to
* have just synchronised while calculating timestep anyway. */
MPI_Barrier( self->communicator );
Journal_DPrintf( self->debug, "In: %s\n", __func__ );
+
+ enabled=Stream_IsEnable(self->info);
+ Stream_Enable(self->info,True);
Journal_RPrintf( self->info, "TimeStep = %d, Start time = %.6g + %.6g prev timeStep dt\n",
self->timeStep, self->currentTime, dt );
+ Stream_Enable(self->info,enabled);
if (self->loadFromCheckPoint) {
Journal_RPrintf( self->info, "TimeStep since job restart = %d\n", self->timeStepSinceJobRestart );
More information about the CIG-COMMITS
mailing list