MockEulerIvpOdeSolver Class Reference

#include <MockEulerIvpOdeSolver.hpp>

Inherits EulerIvpOdeSolver.

Collaboration diagram for MockEulerIvpOdeSolver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MockEulerIvpOdeSolver ()
unsigned GetCallCount ()
virtual ~MockEulerIvpOdeSolver ()

Protected Member Functions

virtual void InternalSolve (AbstractOdeSystem *pAbstractOdeSystem, std::vector< double > &rCurrentYValues, std::vector< double > &rWorkingMemory, double startTime, double endTime, double timeStep)

Private Member Functions

template<class Archive >
void serialize (Archive &archive, const unsigned int version)

Private Attributes

unsigned mCallCount

Friends

class boost::serialization::access

Detailed Description

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 43 of file MockEulerIvpOdeSolver.hpp.


Constructor & Destructor Documentation

MockEulerIvpOdeSolver::MockEulerIvpOdeSolver (  ) 

Constructor.

Definition at line 31 of file MockEulerIvpOdeSolver.cpp.

virtual MockEulerIvpOdeSolver::~MockEulerIvpOdeSolver (  )  [inline, virtual]

Destructor.

Definition at line 102 of file MockEulerIvpOdeSolver.hpp.


Member Function Documentation

unsigned MockEulerIvpOdeSolver::GetCallCount (  ) 

Get the number of times the ODE solver has been called.

Returns:
mCallCount.

Definition at line 37 of file MockEulerIvpOdeSolver.cpp.

References mCallCount.

void MockEulerIvpOdeSolver::InternalSolve ( AbstractOdeSystem pAbstractOdeSystem,
std::vector< double > &  rCurrentYValues,
std::vector< double > &  rWorkingMemory,
double  startTime,
double  endTime,
double  timeStep 
) [protected, virtual]

Method that actually performs the solving on behalf of the public Solve methods.

Parameters:
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 42 of file MockEulerIvpOdeSolver.cpp.

References mCallCount.

template<class Archive >
void MockEulerIvpOdeSolver::serialize ( Archive &  archive,
const unsigned int  version 
) [inline, private]

Archive the abstract IVP Solver, never used directly - boost uses this.

Parameters:
archive 
version 

Reimplemented from EulerIvpOdeSolver.

Definition at line 55 of file MockEulerIvpOdeSolver.hpp.

References mCallCount.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Needed for serialization.

Reimplemented from EulerIvpOdeSolver.

Definition at line 47 of file MockEulerIvpOdeSolver.hpp.


Member Data Documentation

How many times the ODE solver has been called.

Definition at line 63 of file MockEulerIvpOdeSolver.hpp.

Referenced by GetCallCount(), InternalSolve(), and serialize().


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 13:06:09 2011 for Chaste by  doxygen 1.6.3