dune-grid  2.2.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
Dune::GmshReaderParser< GridType > Class Template Reference

dimension independent parts for GmshReaderParser More...

#include <dune/grid/io/file/gmshreader.hh>

List of all members.

Public Member Functions

 GmshReaderParser (Dune::GridFactory< GridType > &_factory, bool v, bool i)
std::vector< int > & boundaryIdMap ()
std::vector< int > & elementIndexMap ()
void read (const std::string &f)
void pass1HandleElement (FILE *file, const int elm_type, std::map< int, unsigned int > &renumber, const std::vector< GlobalVector > &nodes)
template<class E , class V , class V2 >
void boundarysegment_insert (const V &nodes, const E &elementDofs, const V2 &vertices)
template<class E , class V >
void boundarysegment_insert (const std::vector< FieldVector< double, 3 > > &nodes, const E &elementDofs, const V &vertices)
virtual void pass2HandleElement (FILE *file, const int elm_type, std::map< int, unsigned int > &renumber, const std::vector< GlobalVector > &nodes, const int physical_entity)

Protected Types

typedef FieldVector< double,
dimWorld
GlobalVector

Protected Member Functions

 dune_static_assert ((dimWorld<=3),"GmshReader requires dimWorld <= 3.")
void readfile (FILE *file, int cnt, const char *format, void *t1, void *t2=0, void *t3=0, void *t4=0, void *t5=0, void *t6=0, void *t7=0, void *t8=0, void *t9=0, void *t10=0)
void skipline (FILE *file)

Protected Attributes

Dune::GridFactory< GridType > & factory
bool verbose
bool insert_boundary_segments
unsigned int number_of_real_vertices
int boundary_element_count
int element_count
char buf [512]
std::string fileName
std::vector< int > boundary_id_to_physical_entity
std::vector< int > element_index_to_physical_entity

Static Protected Attributes

static const int dim = GridType::dimension
static const int dimWorld = GridType::dimensionworld

Detailed Description

template<typename GridType>
class Dune::GmshReaderParser< GridType >

dimension independent parts for GmshReaderParser


Member Typedef Documentation

template<typename GridType>
typedef FieldVector< double, dimWorld > Dune::GmshReaderParser< GridType >::GlobalVector [protected]

Constructor & Destructor Documentation

template<typename GridType>
Dune::GmshReaderParser< GridType >::GmshReaderParser ( Dune::GridFactory< GridType > &  _factory,
bool  v,
bool  i 
) [inline]

Member Function Documentation

template<typename GridType>
std::vector<int>& Dune::GmshReaderParser< GridType >::boundaryIdMap ( ) [inline]
template<typename GridType>
template<class E , class V , class V2 >
void Dune::GmshReaderParser< GridType >::boundarysegment_insert ( const V &  nodes,
const E &  elementDofs,
const V2 &  vertices 
) [inline]
template<typename GridType>
template<class E , class V >
void Dune::GmshReaderParser< GridType >::boundarysegment_insert ( const std::vector< FieldVector< double, 3 > > &  nodes,
const E &  elementDofs,
const V &  vertices 
) [inline]
template<typename GridType>
Dune::GmshReaderParser< GridType >::dune_static_assert ( (dimWorld<=3)  ,
"GmshReader requires dimWorld <= 3."   
) [protected]
template<typename GridType>
std::vector<int>& Dune::GmshReaderParser< GridType >::elementIndexMap ( ) [inline]
template<typename GridType>
void Dune::GmshReaderParser< GridType >::pass1HandleElement ( FILE *  file,
const int  elm_type,
std::map< int, unsigned int > &  renumber,
const std::vector< GlobalVector > &  nodes 
) [inline]
template<typename GridType>
virtual void Dune::GmshReaderParser< GridType >::pass2HandleElement ( FILE *  file,
const int  elm_type,
std::map< int, unsigned int > &  renumber,
const std::vector< GlobalVector > &  nodes,
const int  physical_entity 
) [inline, virtual]
template<typename GridType>
void Dune::GmshReaderParser< GridType >::read ( const std::string &  f) [inline]
template<typename GridType>
void Dune::GmshReaderParser< GridType >::readfile ( FILE *  file,
int  cnt,
const char *  format,
void *  t1,
void *  t2 = 0,
void *  t3 = 0,
void *  t4 = 0,
void *  t5 = 0,
void *  t6 = 0,
void *  t7 = 0,
void *  t8 = 0,
void *  t9 = 0,
void *  t10 = 0 
) [inline, protected]
template<typename GridType>
void Dune::GmshReaderParser< GridType >::skipline ( FILE *  file) [inline, protected]

Member Data Documentation

template<typename GridType>
int Dune::GmshReaderParser< GridType >::boundary_element_count [protected]
template<typename GridType>
std::vector<int> Dune::GmshReaderParser< GridType >::boundary_id_to_physical_entity [protected]
template<typename GridType>
char Dune::GmshReaderParser< GridType >::buf[512] [protected]
template<typename GridType>
const int Dune::GmshReaderParser< GridType >::dim = GridType::dimension [static, protected]
template<typename GridType>
const int Dune::GmshReaderParser< GridType >::dimWorld = GridType::dimensionworld [static, protected]
template<typename GridType>
int Dune::GmshReaderParser< GridType >::element_count [protected]
template<typename GridType>
std::vector<int> Dune::GmshReaderParser< GridType >::element_index_to_physical_entity [protected]
template<typename GridType>
Dune::GridFactory<GridType>& Dune::GmshReaderParser< GridType >::factory [protected]
template<typename GridType>
std::string Dune::GmshReaderParser< GridType >::fileName [protected]
template<typename GridType>
bool Dune::GmshReaderParser< GridType >::insert_boundary_segments [protected]
template<typename GridType>
unsigned int Dune::GmshReaderParser< GridType >::number_of_real_vertices [protected]
template<typename GridType>
bool Dune::GmshReaderParser< GridType >::verbose [protected]

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