[cig-commits] commit:

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


changeset:   31:c3b782023bbd
user:        BelindaMay
date:        Thu Feb 07 22:48:58 2008 +0000
files:       Mesh/src/CartesianGenerator.c
description:
Fixed tests broken by mesh checkpointing


diff -r 3e6db560d14c -r c3b782023bbd Mesh/src/CartesianGenerator.c
--- a/Mesh/src/CartesianGenerator.c	Thu Feb 07 08:00:36 2008 +0000
+++ b/Mesh/src/CartesianGenerator.c	Thu Feb 07 22:48:58 2008 +0000
@@ -1984,7 +1984,7 @@ void CartesianGenerator_GenGeom( Cartesi
 					 "Mesh::verts" );
 
 	/* If loading from checkpoint, read mesh vertices from file */
-	if( context->restartTimestep && context->timeStep == context->restartTimestep ) {
+	if( context && context->restartTimestep && context->timeStep == context->restartTimestep ) {
 		Journal_Printf( stream, "Loading mesh values from file.\n");
 
 		MPI_Comm_rank( MPI_COMM_WORLD, &myRank);



More information about the CIG-COMMITS mailing list