MockEulerIvpOdeSolver Class Reference

#include <MockEulerIvpOdeSolver.hpp>

Inheritance diagram for MockEulerIvpOdeSolver:

Inheritance graph
[legend]
Collaboration diagram for MockEulerIvpOdeSolver:

Collaboration graph
[legend]

List of all members.

Public Member Functions

unsigned GetCallCount ()

Protected Member Functions

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

Private Attributes

unsigned mCallCount


Detailed Description

This 'mock' class is only used in testing. It is the same as the EulerIvpOdeSolver, but also keeps a count of how many times it has been called. This is useful to check ode solving has been parallelised.

Definition at line 43 of file MockEulerIvpOdeSolver.hpp.


Member Function Documentation

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 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 45 of file MockEulerIvpOdeSolver.cpp.

References AbstractOneStepIvpOdeSolver::InternalSolve().


The documentation for this class was generated from the following files:

Generated on Wed Mar 18 12:52:37 2009 for Chaste by  doxygen 1.5.5