jacobi.template
Public Member Functions | Private Attributes | List of all members
gMesh_Hierarchy Class Reference

#include <geom.h>

Public Member Functions

 gMesh_Hierarchy (Mesh const &cmesh, int nlevel)
 
size_t size () const
 
const Meshoperator[] (int lev) const
 
const Meshfinest () const
 
const Meshcoarsest () const
 

Private Attributes

std::vector< std::shared_ptr< Mesh > > _gmesh
 mesh hierarchy from coarse ([0]) to fine. More...
 

Detailed Description

Definition at line 546 of file geom.h.

Constructor & Destructor Documentation

◆ gMesh_Hierarchy()

gMesh_Hierarchy::gMesh_Hierarchy ( Mesh const &  cmesh,
int  nlevel 
)

Constructs mesh hierarchy of nlevel levels starting with coarse mesh cmesh. The coarse mesh cmesh will be nlevel-1 times geometrically refined.

Parameters
[in]cmeshinitial coarse mesh
[in]nlevelnumber levels in mesh hierarchy

Definition at line 1081 of file geom.cpp.

Member Function Documentation

◆ coarsest()

const Mesh& gMesh_Hierarchy::coarsest ( ) const
inline

Access to coarest mesh in mesh hierarchy.

Returns
coarsest mesh

Definition at line 593 of file geom.h.

◆ finest()

const Mesh& gMesh_Hierarchy::finest ( ) const
inline

Access to finest mesh in mesh hierarchy.

Returns
finest mesh

Definition at line 582 of file geom.h.

◆ operator[]()

const Mesh& gMesh_Hierarchy::operator[] ( int  lev) const
inline

Access to mesh lev from mesh hierarchy.

Returns
mesh lev
Warning
An out_of_range exception might be thrown.

Definition at line 571 of file geom.h.

◆ size()

size_t gMesh_Hierarchy::size ( ) const
inline

Definition at line 559 of file geom.h.

Member Data Documentation

◆ _gmesh

std::vector<std::shared_ptr<Mesh> > gMesh_Hierarchy::_gmesh
private

mesh hierarchy from coarse ([0]) to fine.

Definition at line 599 of file geom.h.


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