[cig-commits] commit: Call _AbstractContext_Init so that the streams are set up
Mercurial
hg at geodynamics.org
Wed Oct 20 15:23:20 PDT 2010
changeset: 796:0dcfc6cecb45
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Tue Oct 12 02:41:07 2010 -0700
files: Base/Context/src/AbstractContext.c
description:
Call _AbstractContext_Init so that the streams are set up
diff -r 27604e042867 -r 0dcfc6cecb45 Base/Context/src/AbstractContext.c
--- a/Base/Context/src/AbstractContext.c Tue Jul 27 18:00:11 2010 -0700
+++ b/Base/Context/src/AbstractContext.c Tue Oct 12 02:41:07 2010 -0700
@@ -358,6 +358,10 @@ void _AbstractContext_AssignFromXML( voi
/* the following just pauses at this point to allow time to attach a debugger.. useful for mpi debugging */
sleep( Dictionary_Entry_Value_AsUnsignedInt(Dictionary_GetDefault( self->dictionary, "pauseToAttachDebugger", Dictionary_Entry_Value_FromUnsignedInt( 0 )) ) );
+ /* this defines all the entryPoints, eg, self->constructK, etc...
+ so it must go before we start KeyCall */
+ _AbstractContext_Init( self );
+
/* Main input parameters */
self->frequentOutputEvery = Dictionary_Entry_Value_AsUnsignedInt(
Dictionary_GetDefault( self->dictionary, "outputEvery", Dictionary_Entry_Value_FromUnsignedInt( 1 ) ) );
@@ -524,10 +528,6 @@ void _AbstractContext_AssignFromXML( voi
/* Check if we have been provided a constant to multiply our calculated dt values by. */
self->dtFactor = Dictionary_GetDouble_WithDefault( self->dictionary, (Dictionary_Entry_Key)"timestepFactor", 1.0 );
-
- /* this defines all the entryPoints, eg, self->constructK, etc...
- so it must go before we start KeyCall */
- _AbstractContext_Init( self );
/* construct entry point */
KeyCall( self, self->constructK, EntryPoint_2VoidPtr_CallCast* )( KeyHandle( self, self->constructK ), self, self );
More information about the CIG-COMMITS
mailing list