escript  Revision_
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
paso::TransportProblemAdapter Class Reference

#include <TransportProblemAdapter.h>

Inheritance diagram for paso::TransportProblemAdapter:
escript::AbstractTransportProblem

List of all members.

Public Member Functions

 TransportProblemAdapter ()
 Wrapper for paso::TransportProblem.
 TransportProblemAdapter (TransportProblem_ptr transport_problem, int block_size, const escript::FunctionSpace &functionspace)
 ~TransportProblemAdapter ()
 Empty destructor for TransportProblemAdapter.
TransportProblem_ptr getPaso_TransportProblem () const
 Returns the pointer to the transport problem.
virtual void resetTransport () const
 resets the transport operator typically as they have been updated.
virtual double getSafeTimeStepSize () const
 returns a save time step size.
virtual double getUnlimitedTimeStepSize () const
 returns the value for unlimited time step size.

Static Public Member Functions

static int getTransportTypeId (const int solver, const int preconditioner, const int package, const bool symmetry, Esys_MPIInfo *mpiInfo)
 returns the identifier of the transport problem type to be used when a particular solver, preconditioner and package is used

Private Member Functions

virtual void setToSolution (escript::Data &out, escript::Data &u0, escript::Data &source, double dt, boost::python::object &options) const
 sets solution out by time step dt.
virtual void copyConstraint (escript::Data &source, escript::Data &q, escript::Data &r) const
 copy constraint u_{,t}=r where q>0 into the problem it is assumed that q and r are not empty and has appropriate shape and function space.

Private Attributes

TransportProblem_ptr m_transport_problem

Constructor & Destructor Documentation

Wrapper for paso::TransportProblem.

Description: Wrapper for paso::TransportProblem. /brief Default Constructor for TransportProblemAdapter. NB: Only throws an exception.

paso::TransportProblemAdapter::TransportProblemAdapter ( TransportProblem_ptr  transport_problem,
int  block_size,
const escript::FunctionSpace functionspace 
)

/brief Constructor for TransportProblemAdapter.

Empty destructor for TransportProblemAdapter.


Member Function Documentation

void paso::TransportProblemAdapter::copyConstraint ( escript::Data source,
escript::Data q,
escript::Data r 
) const [private, virtual]

returns a save time step size.

Reimplemented from escript::AbstractTransportProblem.

References paso::checkPasoError(), and m_transport_problem.

Referenced by BOOST_PYTHON_MODULE().

int paso::TransportProblemAdapter::getTransportTypeId ( const int  solver,
const int  preconditioner,
const int  package,
const bool  symmetry,
Esys_MPIInfo mpiInfo 
) [static]

returns the identifier of the transport problem type to be used when a particular solver, preconditioner and package is used

References paso::TransportProblem::getTypeId(), and paso::SystemMatrixAdapter::mapOptionToPaso().

returns the value for unlimited time step size.

Reimplemented from escript::AbstractTransportProblem.

References LARGE_POSITIVE_FLOAT.

Referenced by BOOST_PYTHON_MODULE().

resets the transport operator typically as they have been updated.

Reimplemented from escript::AbstractTransportProblem.

References paso::checkPasoError(), and m_transport_problem.

Referenced by BOOST_PYTHON_MODULE().

void paso::TransportProblemAdapter::setToSolution ( escript::Data out,
escript::Data u0,
escript::Data source,
double  dt,
boost::python::object &  options 
) const [private, virtual]

Member Data Documentation


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