[cig-commits] commit:

Mercurial hg at geodynamics.org
Mon Nov 24 11:58:09 PST 2008


changeset:   5:11d2526ecff1
user:        BelindaMay
date:        Thu Oct 25 06:04:26 2007 +0000
files:       Swarm/src/SwarmClass.c
description:
Fixed a bug that was causing a seg fault when restarting from checkpoint


diff -r 1e8c94d60a06 -r 11d2526ecff1 Swarm/src/SwarmClass.c
--- a/Swarm/src/SwarmClass.c	Thu Oct 18 00:26:16 2007 +0000
+++ b/Swarm/src/SwarmClass.c	Thu Oct 25 06:04:26 2007 +0000
@@ -799,7 +799,7 @@ void _Swarm_Initialise( void* swarm, voi
 	Stream_UnIndentBranch( Swarm_Debug );
 	Journal_DPrintf( self->debug, "...done in %s().\n", __func__ );
 
-	if( self->ics || ( context && (True == context->loadFromCheckPoint) ) ) {
+	if( self->ics && ( context && (True == context->loadFromCheckPoint) ) ) {
 		Journal_DPrintf( self->debug, "applying the ICs for this swarm.\n" );
 		Stream_Indent( self->debug );
 		Stg_Component_Initialise( self->ics, data, False );



More information about the CIG-COMMITS mailing list