Dune Core Modules (2.5.0)

Dune::GmshReaderParser< GridType > Class Template Reference

dimension independent parts for GmshReaderParser More...

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

Public Member Functions

void pass1HandleElement (FILE *file, const int elm_type, std::map< int, unsigned int > &renumber, const std::vector< GlobalVector > &nodes)
 Process one element during the first pass through the list of all elements. More...
 
virtual void pass2HandleElement (FILE *file, const int elm_type, std::map< int, unsigned int > &renumber, const std::vector< GlobalVector > &nodes, const int physical_entity)
 Process one element during the second pass through the list of all elements. More...
 

Detailed Description

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

dimension independent parts for GmshReaderParser

Member Function Documentation

◆ pass1HandleElement()

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

Process one element during the first pass through the list of all elements.

Mainly, the method inserts all vertices needed by the current element, unless they have been inserted already for a previous element.

References Dune::formatString(), and Dune::GridFactory< GridType >::insertVertex().

◆ pass2HandleElement()

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 
)
inlinevirtual

Process one element during the second pass through the list of all elements.

This method actually inserts the element into the grid factory.

References Dune::GeometryType::cube, Dune::formatString(), Dune::GridFactory< GridType >::insertBoundarySegment(), Dune::GridFactory< GridType >::insertElement(), Dune::GeometryType::prism, Dune::GeometryType::pyramid, and Dune::GeometryType::simplex.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)