[cig-commits] commit:
Mercurial
hg at geodynamics.org
Mon Nov 24 11:58:43 PST 2008
changeset: 78:ce27f9766f1f
user: BelindaMay
date: Fri Apr 18 00:45:45 2008 +0000
files: Mesh/src/CartesianGenerator.c
description:
Added options (checkpointReadPath and checkpointWritePath) so that checkpoint files can be read from and written to different directories
diff -r 3fb6b198f2e8 -r ce27f9766f1f Mesh/src/CartesianGenerator.c
--- a/Mesh/src/CartesianGenerator.c Fri Apr 18 00:30:40 2008 +0000
+++ b/Mesh/src/CartesianGenerator.c Fri Apr 18 00:45:45 2008 +0000
@@ -280,7 +280,7 @@ void _CartesianGenerator_Construct( void
restartTimestep = Stg_ComponentFactory_GetRootDictUnsignedInt( cf, "restartTimestep", 1 );
if( restartTimestep ) {
- strcpy( checkpointPath, Stg_ComponentFactory_GetRootDictString( cf, "checkpointPath", "" ) );
+ strcpy( checkpointPath, Stg_ComponentFactory_GetRootDictString( cf, "checkpointReadPath", Stg_ComponentFactory_GetRootDictString( cf, "checkpointPath", Stg_ComponentFactory_GetRootDictString( cf, "outputPath", "" ) ) ) );
strcpy( checkpointPrefix, Stg_ComponentFactory_GetRootDictString( cf, "checkPointPrefixString", "" ) );
if ( strlen(checkpointPrefix) > 0 ) {
@@ -2017,11 +2017,11 @@ void CartesianGenerator_GenGeom( Cartesi
MPI_Comm_size( self->mpiComm, &nProcs );
if ( strlen( context->checkPointPrefixString ) > 0 ) {
- sprintf( meshSaveFileName, "%s/%s.Mesh.%05d.dat", context->checkpointPath,
+ sprintf( meshSaveFileName, "%s/%s.Mesh.%05d.dat", context->checkpointReadPath,
context->checkPointPrefixString, context->restartTimestep, myRank );
}
else {
- sprintf( meshSaveFileName, "%s/Mesh.%05d.dat", context->checkpointPath,
+ sprintf( meshSaveFileName, "%s/Mesh.%05d.dat", context->checkpointReadPath,
context->restartTimestep, myRank );
}
More information about the CIG-COMMITS
mailing list