[cig-commits] commit: Do not run TimeIntegrator if it is the first step

Mercurial hg at geodynamics.org
Mon Nov 21 12:08:42 PST 2011


changeset:   639:8778d09159cb
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Mon Nov 21 12:08:26 2011 -0800
files:       Utils/src/TimeIntegrator.cxx
description:
Do not run TimeIntegrator if it is the first step


diff -r 6eea7367d54f -r 8778d09159cb Utils/src/TimeIntegrator.cxx
--- a/Utils/src/TimeIntegrator.cxx	Wed Nov 09 15:20:52 2011 -0800
+++ b/Utils/src/TimeIntegrator.cxx	Mon Nov 21 12:08:26 2011 -0800
@@ -267,6 +267,10 @@ void TimeIntegrator_UpdateClass( void* t
 	TimeIntegrator*        self            = (TimeIntegrator*) timeIntegrator;
 	double wallTime,tmin,tmax;
 	
+        AbstractContext* context((AbstractContext*)data);
+        if(context->timeStep==context->restartTimestep)
+          return;
+
 	wallTime = MPI_Wtime();
 	Journal_RPrintf(self->info,"Time Integration\n");
 	self->_execute( self, data );



More information about the CIG-COMMITS mailing list