Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::TimeSlab Class Reference

#include <TimeSlab.h>

Inheritance diagram for dolfin::TimeSlab:

Inheritance graph
[legend]
Collaboration diagram for dolfin::TimeSlab:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeSlab (real t0, real t1)
 Create time slab, including one iteration.

virtual ~TimeSlab ()
 Destructor.

bool within (real t) const
 Check if the given time is within the time slab.

bool finished () const
 Check if the time slab reached the given end time.

real starttime () const
 Return start time.

real endtime () const
 Return end time.

real length () const
 Return length of time slab.

virtual bool accept (RHS &f, real TOL)=0
 Check if time slab can be accepted for given tolerance.

virtual void countElementGroups (unsigned int &size)=0
 Count the number of element groups contained in the time slab.

virtual void addElementGroups (NewArray< ElementGroup * > &groups, unsigned int &pos)=0
 Add element groups contained in the time slab to the list.

virtual void show (unsigned int depth=0) const=0
 --- Output --- Display structure of time slab


Protected Member Functions

void setsize (real K, const Adaptivity &adaptivity)

Protected Attributes

real t0
real t1
bool reached_endtime
ElementGroup group

Friends

LogStreamoperator<< (LogStream &stream, const TimeSlab &timeslab)
 Output.


Detailed Description

A TimeSlab represents (a subsystem of) the system of ODEs between synchronized time levels t0 and t1.


Constructor & Destructor Documentation

TimeSlab::TimeSlab real  t0,
real  t1
 

Create time slab, including one iteration.

TimeSlab::~TimeSlab  )  [virtual]
 

Destructor.


Member Function Documentation

virtual bool dolfin::TimeSlab::accept RHS f,
real  TOL
[pure virtual]
 

Check if time slab can be accepted for given tolerance.

Implemented in dolfin::RecursiveTimeSlab, and dolfin::SimpleTimeSlab.

virtual void dolfin::TimeSlab::addElementGroups NewArray< ElementGroup * > &  groups,
unsigned int &  pos
[pure virtual]
 

Add element groups contained in the time slab to the list.

Implemented in dolfin::RecursiveTimeSlab, and dolfin::SimpleTimeSlab.

virtual void dolfin::TimeSlab::countElementGroups unsigned int &  size  )  [pure virtual]
 

Count the number of element groups contained in the time slab.

Implemented in dolfin::RecursiveTimeSlab, and dolfin::SimpleTimeSlab.

real TimeSlab::endtime  )  const
 

Return end time.

bool TimeSlab::finished  )  const
 

Check if the time slab reached the given end time.

real TimeSlab::length  )  const
 

Return length of time slab.

void TimeSlab::setsize real  K,
const Adaptivity adaptivity
[protected]
 

virtual void dolfin::TimeSlab::show unsigned int  depth = 0  )  const [pure virtual]
 

--- Output --- Display structure of time slab

Implemented in dolfin::RecursiveTimeSlab, and dolfin::SimpleTimeSlab.

real TimeSlab::starttime  )  const
 

Return start time.

bool TimeSlab::within real  t  )  const
 

Check if the given time is within the time slab.


Friends And Related Function Documentation

LogStream& operator<< LogStream stream,
const TimeSlab timeslab
[friend]
 

Output.


Member Data Documentation

ElementGroup dolfin::TimeSlab::group [protected]
 

bool dolfin::TimeSlab::reached_endtime [protected]
 

real dolfin::TimeSlab::t0 [protected]
 

real dolfin::TimeSlab::t1 [protected]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.