Sundance::ForwardProblemTestBase Class Reference

Inheritance diagram for Sundance::ForwardProblemTestBase:

Sundance::LPTestBase Sundance::LP1DTestBase Sundance::LPRectTestBase

List of all members.

Public Member Functions

virtual bool run (const std::string &solverFile, double tol) const
virtual std::string name () const =0
virtual Expr exactSoln () const =0
virtual VectorType< double > vecType () const
virtual Expr coord (int d) const
virtual Mesh getMesh (int i) const =0
virtual CellFilter interior () const =0
virtual RCP
< ErrNormCalculatorBase
normCalculator () const
virtual bool solve (const Mesh &mesh, const LinearSolver< double > &solver, Expr &soln) const =0
virtual int numMeshes () const =0
virtual double cellSize (int i) const
virtual Array< int > pExpected () const =0
virtual void postRunCallback (int meshID, const Mesh &mesh, const string &solverFile, const Expr &soln) const

Private Member Functions

bool runSingleTest (const std::string &solverFile, const double &tol) const
bool runTestSequence (const std::string &solverFile, const double &tol) const

Detailed Description

Definition at line 270 of file SundanceProblemTesting.hpp.

Member Function Documentation

double Sundance::ForwardProblemTestBase::cellSize ( int  i  )  const [virtual]

Return the average cell size on the $i$-th mesh.

Definition at line 327 of file SundanceProblemTesting.cpp.

References Sundance::evaluateIntegral(), getMesh(), and interior().

Referenced by runTestSequence().

Expr Sundance::ForwardProblemTestBase::coord ( int  d  )  const [virtual]

Definition at line 321 of file SundanceProblemTesting.cpp.

virtual Expr Sundance::ForwardProblemTestBase::exactSoln (  )  const [pure virtual]

Referenced by runSingleTest(), and runTestSequence().

virtual Mesh Sundance::ForwardProblemTestBase::getMesh ( int  i  )  const [pure virtual]

virtual CellFilter Sundance::ForwardProblemTestBase::interior (  )  const [pure virtual]

virtual std::string Sundance::ForwardProblemTestBase::name (  )  const [pure virtual]

Referenced by runTestSequence().

RCP< ErrNormCalculatorBase > Sundance::ForwardProblemTestBase::normCalculator (  )  const [virtual]

Definition at line 339 of file SundanceProblemTesting.cpp.

Referenced by runSingleTest(), and runTestSequence().

virtual int Sundance::ForwardProblemTestBase::numMeshes (  )  const [pure virtual]

Implemented in Sundance::LP1DTestBase, and Sundance::LPRectTestBase.

Referenced by run(), and runTestSequence().

virtual Array<int> Sundance::ForwardProblemTestBase::pExpected (  )  const [pure virtual]

Return the order of accuracy expected for the solution. If the problem is vector-valued, an array of expected orders is returned.

Referenced by Sundance::L2NormCalculator::computeNorms(), and runTestSequence().

virtual void Sundance::ForwardProblemTestBase::postRunCallback ( int  meshID,
const Mesh mesh,
const string &  solverFile,
const Expr soln 
) const [inline, virtual]

Hook for a user-defined operation after each run. This can be used, for example, to write viz output. Default is a no-op.

Definition at line 322 of file SundanceProblemTesting.hpp.

Referenced by runTestSequence().

bool Sundance::ForwardProblemTestBase::run ( const std::string &  solverFile,
double  tol 
) const [virtual]

Definition at line 344 of file SundanceProblemTesting.cpp.

References numMeshes(), runSingleTest(), and runTestSequence().

bool Sundance::ForwardProblemTestBase::runSingleTest ( const std::string &  solverFile,
const double &  tol 
) const [private]

bool Sundance::ForwardProblemTestBase::runTestSequence ( const std::string &  solverFile,
const double &  tol 
) const [private]

virtual bool Sundance::ForwardProblemTestBase::solve ( const Mesh mesh,
const LinearSolver< double > &  solver,
Expr soln 
) const [pure virtual]

Solve the problem on the $i$-th mesh. Return a bool indicating whether the solve succeeded.

Implemented in Sundance::LPTestBase.

Referenced by runSingleTest(), and runTestSequence().

VectorType< double > Sundance::ForwardProblemTestBase::vecType (  )  const [virtual]

Definition at line 316 of file SundanceProblemTesting.cpp.

Site Contact