[cig-commits] commit: Dump a checkpoint on the zero time step

Mercurial hg at geodynamics.org
Sun Apr 29 05:34:31 PDT 2012


changeset:   827:d8c948962846
user:        Walter Landry <wlandry at caltech.edu>
date:        Sun Apr 29 05:34:01 2012 -0700
files:       Base/Context/src/AbstractContext.cxx
description:
Dump a checkpoint on the zero time step


diff -r 739d3ad1648d -r d8c948962846 Base/Context/src/AbstractContext.cxx
--- a/Base/Context/src/AbstractContext.cxx	Mon Apr 02 15:20:27 2012 -0700
+++ b/Base/Context/src/AbstractContext.cxx	Sun Apr 29 05:34:01 2012 -0700
@@ -833,7 +833,8 @@ void _AbstractContext_Execute_Hook( void
 		}	
 		if ( self->checkpointEvery ) {
 			if ( self->timeStep % self->checkpointEvery == 0
-                             && self->timeStep!=self->restartTimestep ){
+                             && (self->timeStep!=self->restartTimestep
+                                 || self->timeStep==0) ){
 				AbstractContext_Save( self );
          }
 		}	



More information about the CIG-COMMITS mailing list