Dune::GrapeDataDisplay< GridType > Class Template Reference
[Grape]

#include <grapedatadisplay.hh>

Inheritance diagram for Dune::GrapeDataDisplay< GridType >:

Dune::GrapeGridDisplay< GridType >

List of all members.


Detailed Description

template<class GridType>
class Dune::GrapeDataDisplay< GridType >

Todo:
Please doc me!

Public Member Functions

 GrapeDataDisplay (const GridType &grid, const int myrank=-1)
 Constructor, make a GrapeDataDisplay for given grid.
template<class GridPartType>
 GrapeDataDisplay (const GridPartType &gridPart, const int myrank=-1)
 Constructor, make a GrapeDataDisplay for given grid.
 ~GrapeDataDisplay ()
 Desctructor.
template<class VectorType, class IndexSetType>
void displayVector (const std::string name, const VectorType &data, const IndexSetType &indexSet, const int polOrd, const unsigned int dimRange, bool continuous=false)
template<class DiscFuncType>
void dataDisplay (const DiscFuncType &func, bool vector=false)
void display ()
 display grid and data without grid mode
template<class DiscFuncType>
void addData (const DiscFuncType &func, double time=0.0, bool vector=false)
 add discrete function to display
template<class DiscFuncType>
void addData (const DiscFuncType &func, const DATAINFO *, double time)
 add discrete function to display
template<class DiscFuncType>
void addData (const DiscFuncType &func, std::string name, double time, bool vector=false)
 add discrete function to display
int myRank () const
 return rank of this display, for visualisation of parallel grid
void * getHmesh ()
 return pointer to Grape Hmesh
DUNE_DAT & getDuneDat ()
void addMyMeshToTimeScene (void *timescene, double time, int proc)
const GridTypegetGrid () const
 return reference to Dune Grid
template<class IntersectionIteratorType>
void checkNeighbors (IntersectionIteratorType &, const IntersectionIteratorType &, DUNE_ELEM *)

Protected Attributes

const GridTypegrid_
 the grid we want to display
const bool hasLevelIntersections_
 true if we can use LevelIntersectionIterator
void * indexSet_
 leaf index set of the grid
const LocalIdSetType & lid_
 leaf index set of the grid
const int myRank_
 my process number
DUNE_ELEM hel_
 store the actual element pointer
void * hmesh_
 pointer to hmesh

Member Function Documentation

template<class GridType>
template<class VectorType, class IndexSetType>
void Dune::GrapeDataDisplay< GridType >::displayVector ( const std::string  name,
const VectorType &  data,
const IndexSetType &  indexSet,
const int  polOrd,
const unsigned int  dimRange,
bool  continuous = false 
) [inline]

display data stored in vector

Parameters:
name Name of data (i.e. solution)
data Data vector storing data to display
indexSet The corresponding index set related to the data
dinf GrapeDataDisplay internal data
polOrd polynominal order of Lagrangespace, only 0 and 1 allowed at the momnent @ param continuous continuous or not (i.e polOrd = 0 ==> discontinuous) default is discontinuous

References Dune::GrapeGridDisplay< GridType >::hmesh_.

template<class GridType>
template<class DiscFuncType>
void Dune::GrapeDataDisplay< GridType >::dataDisplay ( const DiscFuncType &  func,
bool  vector = false 
) [inline]

Calls the display of the grid and draws the discrete function if discretefunction is NULL, then only the grid is displayed

References Dune::GrapeDataDisplay< GridType >::addData(), and Dune::GrapeGridDisplay< GridType >::hmesh_.

template<class GridType>
DUNE_DAT& Dune::GrapeGridDisplay< GridType >::getDuneDat (  )  [inline, inherited]

Todo:
Please doc me!

template<class GridType>
void Dune::GrapeGridDisplay< GridType >::addMyMeshToTimeScene ( void *  timescene,
double  time,
int  proc 
) [inline, inherited]

template<class GridType>
template<class IntersectionIteratorType>
void Dune::GrapeGridDisplay< GridType >::checkNeighbors ( IntersectionIteratorType &  nit,
const IntersectionIteratorType &  endnit,
DUNE_ELEM *  he 
) [inline, inherited]


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

Generated on Thu Apr 2 10:40:48 2009 for dune-grid by  doxygen 1.5.6