Commit 45e32b2c authored by pugmire's avatar pugmire

Add post step callback capability.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@13523 18c085ea-50e0-402c-830e-de6fd14e8384
parent c0bee488
......@@ -110,6 +110,7 @@ avtIntegralCurve::avtIntegralCurve( const avtIVPSolver* model,
ivp->Reset( t_start, p_start );
counter = 0;
encounteredNumericalProblems = false;
postStepCallbackFunction = NULL;
}
......@@ -158,6 +159,7 @@ avtIntegralCurve::avtIntegralCurve()
id = -1;
counter = 0;
encounteredNumericalProblems = false;
postStepCallbackFunction = NULL;
}
......@@ -373,6 +375,11 @@ void avtIntegralCurve::Advance( avtIVPField* field )
status = STATUS_FINISHED;
}
/*
if (status == STATUS_OK && postStepCallbackFunction != NULL)
postStepCallbackFunction();
*/
}
while( status == STATUS_OK );
......
......@@ -51,6 +51,8 @@
class vtkObject;
typedef bool (*avtIntegralCurveCallback)(void);
// ****************************************************************************
// Class: DomainType
//
......@@ -235,7 +237,11 @@ class IVP_API avtIntegralCurve
bool EncounteredNumericalProblems(void)
{ return encounteredNumericalProblems; };
void SetPostStepCallback(avtIntegralCurveCallback func) {postStepCallbackFunction = func; }
protected:
avtIntegralCurveCallback postStepCallbackFunction;
avtIntegralCurve( const avtIntegralCurve& );
avtIntegralCurve& operator=( const avtIntegralCurve& );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment