[cig-commits] commit: Do not attempt to checkpoint if we just loaded from restart.

Mercurial hg at geodynamics.org
Mon Apr 2 16:12:03 PDT 2012


changeset:   826:739d3ad1648d
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Mon Apr 02 15:20:27 2012 -0700
files:       Base/Context/src/AbstractContext.cxx
description:
Do not attempt to checkpoint if we just loaded from restart.


diff -r 6d7c64b3671e -r 739d3ad1648d Base/Context/src/AbstractContext.cxx
--- a/Base/Context/src/AbstractContext.cxx	Thu Mar 15 16:37:21 2012 -0700
+++ b/Base/Context/src/AbstractContext.cxx	Mon Apr 02 15:20:27 2012 -0700
@@ -832,7 +832,8 @@ void _AbstractContext_Execute_Hook( void
 				AbstractContext_Dump( self );
 		}	
 		if ( self->checkpointEvery ) {
-			if ( self->timeStep % self->checkpointEvery == 0 ){
+			if ( self->timeStep % self->checkpointEvery == 0
+                             && self->timeStep!=self->restartTimestep ){
 				AbstractContext_Save( self );
          }
 		}	



More information about the CIG-COMMITS mailing list