![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <MockEulerIvpOdeSolver.hpp>
Public Member Functions | |
MockEulerIvpOdeSolver () | |
unsigned | GetCallCount () |
virtual | ~MockEulerIvpOdeSolver () |
![]() | |
EulerIvpOdeSolver () | |
virtual | ~EulerIvpOdeSolver () |
![]() | |
virtual OdeSolution | Solve (AbstractOdeSystem *pAbstractOdeSystem, std::vector< double > &rYValues, double startTime, double endTime, double timeStep, double timeSampling) |
virtual void | Solve (AbstractOdeSystem *pAbstractOdeSystem, std::vector< double > &rYValues, double startTime, double endTime, double timeStep) |
virtual | ~AbstractOneStepIvpOdeSolver () |
![]() | |
virtual void | SolveAndUpdateStateVariable (AbstractOdeSystem *pAbstractOdeSystem, double startTime, double endTime, double timeStep) |
bool | StoppingEventOccurred () |
double | GetStoppingTime () |
AbstractIvpOdeSolver () | |
virtual | ~AbstractIvpOdeSolver () |
![]() | |
virtual | ~Identifiable () |
std::string | GetIdentifier () const |
Protected Member Functions | |
virtual void | InternalSolve (AbstractOdeSystem *pAbstractOdeSystem, std::vector< double > &rCurrentYValues, std::vector< double > &rWorkingMemory, double startTime, double endTime, double timeStep) |
![]() | |
void | CalculateNextYValue (AbstractOdeSystem *pAbstractOdeSystem, double timeStep, double time, std::vector< double > &rCurrentYValues, std::vector< double > &rNextYValues) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
unsigned | mCallCount |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
![]() | |
bool | mStoppingEventOccurred |
double | mStoppingTime |
This 'mock' class is only used in testing. It is the same as the EulerIvpOdeSolver class, but also keeps a count of how many times it has been called. This is useful to check ODE solving has been parallelised correctly.
Definition at line 50 of file MockEulerIvpOdeSolver.hpp.
MockEulerIvpOdeSolver::MockEulerIvpOdeSolver | ( | ) |
Constructor.
Definition at line 38 of file MockEulerIvpOdeSolver.cpp.
|
inlinevirtual |
Destructor.
Definition at line 109 of file MockEulerIvpOdeSolver.hpp.
unsigned MockEulerIvpOdeSolver::GetCallCount | ( | ) |
Get the number of times the ODE solver has been called.
Definition at line 44 of file MockEulerIvpOdeSolver.cpp.
References mCallCount.
|
protectedvirtual |
Method that actually performs the solving on behalf of the public Solve methods.
pAbstractOdeSystem | the ODE system to solve |
rCurrentYValues | the current (initial) state; results will also be returned in here |
rWorkingMemory | working memory; same size as rCurrentYValues |
startTime | initial time |
endTime | time to solve to |
timeStep | dt |
Reimplemented from AbstractOneStepIvpOdeSolver.
Definition at line 49 of file MockEulerIvpOdeSolver.cpp.
References AbstractOneStepIvpOdeSolver::InternalSolve(), and mCallCount.
|
inlineprivate |
Archive the abstract IVP Solver, never used directly - boost uses this.
archive | |
version |
Definition at line 62 of file MockEulerIvpOdeSolver.hpp.
References mCallCount.
|
friend |
Needed for serialization.
Definition at line 54 of file MockEulerIvpOdeSolver.hpp.
|
private |
How many times the ODE solver has been called.
Definition at line 70 of file MockEulerIvpOdeSolver.hpp.
Referenced by GetCallCount(), InternalSolve(), and serialize().