dune-grid
2.3.1
|
Class for constructing grids from DGF files. More...
#include <dune/grid/io/file/dgfparser/gridptr.hh>
Classes | |
struct | DataHandle |
class | mygrid_ptr |
Public Types | |
typedef MPIHelper::MPICommunicator | MPICommunicatorType |
Public Member Functions | |
GridPtr (const std::string &filename, MPICommunicatorType comm=MPIHelper::getCommunicator()) | |
constructor given the name of a DGF file More... | |
GridPtr (std::istream &input, MPICommunicatorType comm=MPIHelper::getCommunicator()) | |
constructor given a std::istream More... | |
GridPtr () | |
Default constructor, creating empty GridPtr. More... | |
GridPtr (GridType *grd) | |
Constructor storing given pointer to internal auto pointer. More... | |
GridPtr (const GridPtr &org) | |
Copy constructor, copies internal auto pointer. More... | |
GridPtr & | operator= (const GridPtr &org) |
assignment of grid pointer More... | |
GridPtr & | operator= (GridType *grd) |
assignment of pointer to internal auto pointer More... | |
GridType & | operator* () |
return reference to GridType instance More... | |
GridType * | operator-> () |
return pointer to GridType instance More... | |
const GridType & | operator* () const |
return const reference to GridType instance More... | |
const GridType * | operator-> () const |
return const pointer to GridType instance More... | |
GridType * | release () |
release pointer from internal ownership More... | |
int | nofParameters (int cdim) const |
get number of parameters defined for a given codimension More... | |
template<class Entity > | |
int | nofParameters (const Entity &) const |
get parameters defined for given entity More... | |
template<class GridImp , class IntersectionImp > | |
int | nofParameters (const Intersection< GridImp, IntersectionImp > &intersection) const |
get number of parameters defined for a given intersection More... | |
template<class Entity > | |
const std::vector< double > & | parameters (const Entity &entity) const |
get parameters defined for each codim 0 und dim entity on the grid through the grid file More... | |
template<class GridImp , class IntersectionImp > | |
const DGFBoundaryParameter::type & | parameters (const Intersection< GridImp, IntersectionImp > &intersection) const |
get parameters for intersection More... | |
void | loadBalance () |
Static Public Attributes | |
static const int | dimension = GridType::dimension |
Protected Member Functions | |
void | initialize (DGFGridFactory< GridType > &dgfFactory) |
template<class Entity > | |
std::vector< double > & | params (const Entity &entity) |
void | setNofParams (int cdim, int nofP) |
Protected Attributes | |
mygrid_ptr | gridPtr_ |
std::vector< std::vector < double > > | elParam_ |
std::vector< std::vector < double > > | vtxParam_ |
std::vector < DGFBoundaryParameter::type > | bndParam_ |
std::vector< int > | bndId_ |
std::vector< double > | emptyParam_ |
int | nofElParam_ |
int | nofVtxParam_ |
bool | haveBndParam_ |
Class for constructing grids from DGF files.
The constructor of the class is given the filename of the DGF file. From that file a pointer to an instance of type GridType is created by reading the given file which is translated to the specific format of the given GridType. The GridPtr class behaves like an auto pointer of GridType. An auto pointer to a grid of type GridType is constructed as follows:
typedef MPIHelper::MPICommunicator Dune::GridPtr< GridType >::MPICommunicatorType |
|
inlineexplicit |
constructor given the name of a DGF file
References Dune::GridPtr< GridType >::initialize().
|
inlineexplicit |
constructor given a std::istream
References Dune::GridPtr< GridType >::initialize().
|
inline |
Default constructor, creating empty GridPtr.
|
inlineexplicit |
Constructor storing given pointer to internal auto pointer.
|
inline |
Copy constructor, copies internal auto pointer.
|
inlineprotected |
References Dune::GridPtr< GridType >::bndId_, Dune::GridPtr< GridType >::bndParam_, Dune::Intersection< GridImp, IntersectionImp >::boundary(), Dune::DGFGridFactory< Grid >::boundaryId(), Dune::DGFGridFactory< Grid >::boundaryParameter(), Dune::Intersection< GridImp, IntersectionImp >::boundarySegmentIndex(), Dune::GridPtr< GridType >::dimension, Dune::GridPtr< GridType >::elParam_, Dune::DGFGridFactory< Grid >::grid(), Dune::GridPtr< GridType >::gridPtr_, Dune::GridPtr< GridType >::haveBndParam_, Dune::DGFGridFactory< Grid >::haveBoundaryParameters(), Dune::GridView< ViewTraits >::ibegin(), Dune::GridView< ViewTraits >::iend(), Dune::Intersection< GridImp, IntersectionImp >::indexInInside(), Dune::GridView< ViewTraits >::indexSet(), Dune::Interior_Partition, Dune::GridPtr< GridType >::nofElParam_, Dune::GridPtr< GridType >::nofVtxParam_, Dune::DGFGridFactory< Grid >::parameter(), Dune::Intersection< GridImp, IntersectionImp >::type(), and Dune::GridPtr< GridType >::vtxParam_.
Referenced by Dune::GridPtr< GridType >::GridPtr().
|
inline |
References Dune::ForwardCommunication, Dune::GridPtr< GridType >::gridPtr_, Dune::GridPtr< GridType >::haveBndParam_, Dune::GridPtr< GridType >::DataHandle::interface(), Dune::InteriorBorder_All_Interface, Dune::GridPtr< GridType >::nofElParam_, Dune::GridPtr< GridType >::nofVtxParam_, and Dune::GridPtr< GridType >::params().
|
inline |
get number of parameters defined for a given codimension
References Dune::GridPtr< GridType >::nofElParam_, and Dune::GridPtr< GridType >::nofVtxParam_.
Referenced by Dune::GridPtr< GridType >::DataHandle::gather(), Dune::GridPtr< GridType >::nofParameters(), and Dune::GridPtr< GridType >::DataHandle::size().
|
inline |
get parameters defined for given entity
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension, and Dune::GridPtr< GridType >::nofParameters().
|
inline |
get number of parameters defined for a given intersection
References Dune::GridPtr< GridType >::parameters().
|
inline |
return reference to GridType instance
References Dune::GridPtr< GridType >::gridPtr_.
|
inline |
return const reference to GridType instance
References Dune::GridPtr< GridType >::gridPtr_.
|
inline |
return pointer to GridType instance
References Dune::GridPtr< GridType >::gridPtr_.
|
inline |
return const pointer to GridType instance
References Dune::GridPtr< GridType >::gridPtr_.
|
inline |
assignment of grid pointer
References Dune::GridPtr< GridType >::bndId_, Dune::GridPtr< GridType >::bndParam_, Dune::GridPtr< GridType >::elParam_, Dune::GridPtr< GridType >::emptyParam_, Dune::GridPtr< GridType >::gridPtr_, Dune::GridPtr< GridType >::haveBndParam_, Dune::GridPtr< GridType >::nofElParam_, Dune::GridPtr< GridType >::nofVtxParam_, and Dune::GridPtr< GridType >::vtxParam_.
|
inline |
assignment of pointer to internal auto pointer
References Dune::GridPtr< GridType >::bndId_, Dune::GridPtr< GridType >::bndParam_, Dune::GridPtr< GridType >::elParam_, Dune::GridPtr< GridType >::emptyParam_, Dune::GridPtr< GridType >::gridPtr_, Dune::GridPtr< GridType >::haveBndParam_, Dune::GridPtr< GridType >::nofElParam_, Dune::GridPtr< GridType >::nofVtxParam_, and Dune::GridPtr< GridType >::vtxParam_.
|
inline |
get parameters defined for each codim 0 und dim entity on the grid through the grid file
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension, Dune::GridPtr< GridType >::elParam_, Dune::GridPtr< GridType >::emptyParam_, Dune::GridPtr< GridType >::gridPtr_, Dune::GridView< ViewTraits >::indexSet(), Dune::GridPtr< GridType >::nofElParam_, Dune::GridPtr< GridType >::nofVtxParam_, and Dune::GridPtr< GridType >::vtxParam_.
Referenced by Dune::GridPtr< GridType >::nofParameters().
|
inline |
get parameters for intersection
References Dune::GridPtr< GridType >::bndParam_, Dune::Intersection< GridImp, IntersectionImp >::boundarySegmentIndex(), Dune::DGFBoundaryParameter::defaultValue(), and Dune::GridPtr< GridType >::haveBndParam_.
|
inlineprotected |
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension, Dune::GridPtr< GridType >::elParam_, Dune::GridPtr< GridType >::emptyParam_, Dune::GridPtr< GridType >::gridPtr_, Dune::GridView< ViewTraits >::indexSet(), Dune::GridPtr< GridType >::nofElParam_, Dune::GridPtr< GridType >::nofVtxParam_, and Dune::GridPtr< GridType >::vtxParam_.
Referenced by Dune::GridPtr< GridType >::loadBalance().
|
inline |
release pointer from internal ownership
References Dune::GridPtr< GridType >::gridPtr_, and Dune::GridPtr< GridType >::mygrid_ptr::release().
|
inlineprotected |
References Dune::GridPtr< GridType >::nofElParam_, and Dune::GridPtr< GridType >::nofVtxParam_.
Referenced by Dune::GridPtr< GridType >::DataHandle::scatter().
|
protected |
Referenced by Dune::GridPtr< GridType >::initialize(), and Dune::GridPtr< GridType >::operator=().
|
protected |
|
static |
|
protected |
|
protected |
|
mutableprotected |
Referenced by Dune::GridPtr< GridType >::initialize(), Dune::GridPtr< GridType >::loadBalance(), Dune::GridPtr< GridType >::operator*(), Dune::GridPtr< GridType >::operator->(), Dune::GridPtr< GridType >::operator=(), Dune::GridPtr< GridType >::parameters(), Dune::GridPtr< GridType >::params(), and Dune::GridPtr< GridType >::release().
|
protected |
|
protected |
Referenced by Dune::GridPtr< GridType >::DataHandle::DataHandle(), Dune::GridPtr< GridType >::initialize(), Dune::GridPtr< GridType >::loadBalance(), Dune::GridPtr< GridType >::nofParameters(), Dune::GridPtr< GridType >::operator=(), Dune::GridPtr< GridType >::parameters(), Dune::GridPtr< GridType >::params(), Dune::GridPtr< GridType >::setNofParams(), and Dune::GridPtr< GridType >::DataHandle::~DataHandle().
|
protected |
Referenced by Dune::GridPtr< GridType >::DataHandle::DataHandle(), Dune::GridPtr< GridType >::initialize(), Dune::GridPtr< GridType >::loadBalance(), Dune::GridPtr< GridType >::nofParameters(), Dune::GridPtr< GridType >::operator=(), Dune::GridPtr< GridType >::parameters(), Dune::GridPtr< GridType >::params(), Dune::GridPtr< GridType >::setNofParams(), and Dune::GridPtr< GridType >::DataHandle::~DataHandle().
|
protected |