Grid parameters for YaspGridThe YaspGridParameter class is in charge of passing parameters specific to YaspGrid to the grid construction. Current parameters are:

  1. overlap defining the overlap of the grid (default value is zero)

See the examplegrid5.dgf file for an example. More...

#include <dune/grid/io/file/dgfparser/dgfyasp.hh>

Inheritance diagram for Dune::dgf::YaspGridParameterBlock:
Inheritance graph

List of all members.

Public Types

typedef unsigned int Flags

Public Member Functions

 YaspGridParameterBlock (std::istream &in)
 constructor taking istream
int overlap () const
 get dimension of world found in block
const std::string & name (const std::string &defaultValue) const
 return the name of the grid
const std::string & dumpFileName () const
bool markLongestEdge () const
 returns true if longest edge should be marked for AlbertaGrid
bool ok ()
bool isactive ()
bool isempty ()
int & noflines ()
int linenumber ()

Static Public Attributes

static const Flags foundName = 1 << 0
static const Flags foundDumpFileName = 1 << 1
static const Flags foundLongestEdge = 1 << 5
static const char * ID = "GridParameter"

Protected Member Functions

void reset ()
bool getnextline ()
template<class ENTRY >
bool getnextentry (ENTRY &entry)
bool gettokenparam (std::string token, std::string &entry)
bool findtoken (std::string token)

Protected Attributes

int _overlap
Flags foundFlags_
std::string name_
std::string dumpFileName_
bool markLongestEdge_
std::stringstream line

Friends

std::ostream & operator<< (std::ostream &os, const BasicBlock &b)

Detailed Description

Grid parameters for YaspGrid

The YaspGridParameter class is in charge of passing parameters specific to YaspGrid to the grid construction. Current parameters are:

  1. overlap defining the overlap of the grid (default value is zero)

See the examplegrid5.dgf file for an example.

Note:
The periodic parameter has been replaced by the PeriodicFaceTransformation block.

Member Typedef Documentation

typedef unsigned int Dune::dgf::GridParameterBlock::Flags [inherited]

Constructor & Destructor Documentation

Dune::dgf::YaspGridParameterBlock::YaspGridParameterBlock ( std::istream &  in  )  [inline]

Member Function Documentation

const std::string& Dune::dgf::GridParameterBlock::dumpFileName (  )  const [inline, inherited]
bool Dune::dgf::BasicBlock::gettokenparam ( std::string  token,
std::string &  entry 
) [protected, inherited]
bool Dune::dgf::BasicBlock::isempty (  )  [inline, inherited]
int Dune::dgf::BasicBlock::linenumber (  )  [inline, inherited]
bool Dune::dgf::GridParameterBlock::markLongestEdge (  )  const [inline, inherited]
const std::string& Dune::dgf::GridParameterBlock::name ( const std::string &  defaultValue  )  const [inline, inherited]
bool Dune::dgf::GridParameterBlock::ok (  )  [inline, inherited]
int Dune::dgf::YaspGridParameterBlock::overlap (  )  const [inline]

get dimension of world found in block

References _overlap.


Friends And Related Function Documentation

std :: ostream& operator<< ( std::ostream &  os,
const BasicBlock b 
) [friend, inherited]

Member Data Documentation

const char * Dune::dgf::GridParameterBlock::ID = "GridParameter" [static, inherited]
std::stringstream Dune::dgf::BasicBlock::line [protected, inherited]

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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].