ug4
ug::AdaptionSurfaceGridFunction< TDomain > Class Template Reference

#include <adaption_surface_grid_function.h>

+ Inheritance diagram for ug::AdaptionSurfaceGridFunction< TDomain >:

Classes

class  ValueAccessor
 

Public Types

typedef Attachment< ValuesAValues
 
typedef std::vector< std::vector< number > > Values
 

Public Member Functions

 AdaptionSurfaceGridFunction (SmartPtr< TDomain > spDomain, bool bObserveStorage=true)
 
template<typename TAlgebra >
void copy_from_surface (const GridFunction< TDomain, TAlgebra > &rSurfaceFct)
 
template<typename TAlgebra >
void copy_to_surface (GridFunction< TDomain, TAlgebra > &rSurfaceFct)
 
void do_restrict (const GridMessage_Adaption &msg)
 
template<typename TBaseElem >
void obj_created (TBaseElem *elem)
 creates storage when object created More...
 
void prolongate (const GridMessage_Adaption &msg)
 
AValues value_attachment ()
 
virtual void vertex_created (Grid *grid, Vertex *vrt, GridObject *pParent=NULL, bool replacesParent=false)
 
virtual void edge_created (Grid *grid, Edge *e, GridObject *pParent=NULL, bool replacesParent=false)
 
virtual void face_created (Grid *grid, Face *f, GridObject *pParent=NULL, bool replacesParent=false)
 
virtual void volume_created (Grid *grid, Volume *vol, GridObject *pParent=NULL, bool replacesParent=false)
 
- Public Member Functions inherited from ug::GridObserver
virtual void elements_to_be_cleared (Grid *grid)
 
virtual void grid_to_be_destroyed (Grid *grid)
 
virtual ~GridObserver ()
 
virtual void vertex_to_be_erased (Grid *grid, Vertex *vrt, Vertex *replacedBy=NULL)
 Notified whenever an element of the given type is erased from the given grid. More...
 
virtual void edge_to_be_erased (Grid *grid, Edge *e, Edge *replacedBy=NULL)
 Notified whenever an element of the given type is erased from the given grid. More...
 
virtual void face_to_be_erased (Grid *grid, Face *f, Face *replacedBy=NULL)
 Notified whenever an element of the given type is erased from the given grid. More...
 
virtual void volume_to_be_erased (Grid *grid, Volume *vol, Volume *replacedBy=NULL)
 Notified whenever an element of the given type is erased from the given grid. More...
 
virtual void vertices_to_be_merged (Grid *grid, Vertex *target, Vertex *elem1, Vertex *elem2)
 Notified when two elements of the same type are going to be merged. More...
 
virtual void edges_to_be_merged (Grid *grid, Edge *target, Edge *elem1, Edge *elem2)
 Notified when two elements of the same type are going to be merged. More...
 
virtual void faces_to_be_merged (Grid *grid, Face *target, Face *elem1, Face *elem2)
 Notified when two elements of the same type are going to be merged. More...
 
virtual void volumes_to_be_merged (Grid *grid, Volume *target, Volume *elem1, Volume *elem2)
 Notified when two elements of the same type are going to be merged. More...
 

Protected Member Functions

void attach_entries (ConstSmartPtr< DoFDistributionInfo > spDDInfo)
 
template<typename TElem , typename TAlgebra >
void copy_from_surface (const GridFunction< TDomain, TAlgebra > &rSurfaceFct)
 
template<typename TElem , typename TAlgebra >
void copy_from_surface (const GridFunction< TDomain, TAlgebra > &rSurfaceFct, TElem *elem)
 
template<typename TElem , typename TAlgebra >
void copy_to_surface (GridFunction< TDomain, TAlgebra > &rSurfaceFct)
 
template<typename TElem , typename TAlgebra >
void copy_to_surface (GridFunction< TDomain, TAlgebra > &rSurfaceFct, TElem *elem)
 
template<typename TElem >
void detach_entries ()
 
void detach_entries ()
 
template<typename TBaseElem >
void do_restrict (const MGSelector &sel, const GridMessage_Adaption &msg)
 
template<typename TBaseElem >
void prolongate (const GridMessage_Adaption &msg, const size_t lvl)
 
template<typename TBaseElem >
void select_parents (MGSelector &sel, const GridMessage_Adaption &msg)
 

Protected Attributes

MultiElementAttachmentAccessor< AValuesm_aaValue
 
AValues m_aValue
 
bool m_bObserveStorage
 
int m_ParallelStorageType
 
ConstSmartPtr< DoFDistributionInfom_spDDInfo
 
SmartPtr< TDomain > m_spDomain
 
SmartPtr< MultiGridm_spGrid
 
std::vector< SmartPtr< IElemProlongation< TDomain > > > m_vpProlong
 
std::vector< SmartPtr< IElemRestriction< TDomain > > > m_vpRestrict
 

Friends

class ValueAccessor
 

Member Typedef Documentation

◆ AValues

template<typename TDomain >
typedef Attachment<Values> ug::AdaptionSurfaceGridFunction< TDomain >::AValues

◆ Values

template<typename TDomain >
typedef std::vector<std::vector<number> > ug::AdaptionSurfaceGridFunction< TDomain >::Values

Constructor & Destructor Documentation

◆ AdaptionSurfaceGridFunction()

template<typename TDomain >
ug::AdaptionSurfaceGridFunction< TDomain >::AdaptionSurfaceGridFunction ( SmartPtr< TDomain >  spDomain,
bool  bObserveStorage = true 
)

Member Function Documentation

◆ attach_entries()

◆ copy_from_surface() [1/3]

template<typename TDomain >
template<typename TAlgebra >
void ug::AdaptionSurfaceGridFunction< TDomain >::copy_from_surface ( const GridFunction< TDomain, TAlgebra > &  rSurfaceFct)

◆ copy_from_surface() [2/3]

template<typename TDomain >
template<typename TElem , typename TAlgebra >
void ug::AdaptionSurfaceGridFunction< TDomain >::copy_from_surface ( const GridFunction< TDomain, TAlgebra > &  rSurfaceFct)
protected

◆ copy_from_surface() [3/3]

template<typename TDomain >
template<typename TElem , typename TAlgebra >
void ug::AdaptionSurfaceGridFunction< TDomain >::copy_from_surface ( const GridFunction< TDomain, TAlgebra > &  rSurfaceFct,
TElem *  elem 
)
protected

◆ copy_to_surface() [1/3]

template<typename TDomain >
template<typename TAlgebra >
void ug::AdaptionSurfaceGridFunction< TDomain >::copy_to_surface ( GridFunction< TDomain, TAlgebra > &  rSurfaceFct)

◆ copy_to_surface() [2/3]

template<typename TDomain >
template<typename TElem , typename TAlgebra >
void ug::AdaptionSurfaceGridFunction< TDomain >::copy_to_surface ( GridFunction< TDomain, TAlgebra > &  rSurfaceFct)
protected

◆ copy_to_surface() [3/3]

template<typename TDomain >
template<typename TElem , typename TAlgebra >
void ug::AdaptionSurfaceGridFunction< TDomain >::copy_to_surface ( GridFunction< TDomain, TAlgebra > &  rSurfaceFct,
TElem *  elem 
)
protected

◆ detach_entries() [1/2]

template<typename TDomain >
template<typename TElem >
void ug::AdaptionSurfaceGridFunction< TDomain >::detach_entries
protected

References UG_THROW.

◆ detach_entries() [2/2]

template<typename TDomain >
void ug::AdaptionSurfaceGridFunction< TDomain >::detach_entries ( )
protected

◆ do_restrict() [1/2]

template<typename TDomain >
void ug::AdaptionSurfaceGridFunction< TDomain >::do_restrict ( const GridMessage_Adaption msg)

◆ do_restrict() [2/2]

template<typename TDomain >
template<typename TBaseElem >
void ug::AdaptionSurfaceGridFunction< TDomain >::do_restrict ( const MGSelector sel,
const GridMessage_Adaption msg 
)
protected

◆ edge_created()

template<typename TDomain >
virtual void ug::AdaptionSurfaceGridFunction< TDomain >::edge_created ( Grid grid,
Edge e,
GridObject pParent = NULL,
bool  replacesParent = false 
)
inlinevirtual

grid observer callbacks

Reimplemented from ug::GridObserver.

References ug::AdaptionSurfaceGridFunction< TDomain >::obj_created().

◆ face_created()

template<typename TDomain >
virtual void ug::AdaptionSurfaceGridFunction< TDomain >::face_created ( Grid grid,
Face f,
GridObject pParent = NULL,
bool  replacesParent = false 
)
inlinevirtual

grid observer callbacks

Reimplemented from ug::GridObserver.

References ug::AdaptionSurfaceGridFunction< TDomain >::obj_created().

◆ obj_created()

◆ prolongate() [1/2]

template<typename TDomain >
void ug::AdaptionSurfaceGridFunction< TDomain >::prolongate ( const GridMessage_Adaption msg)

◆ prolongate() [2/2]

template<typename TDomain >
template<typename TBaseElem >
void ug::AdaptionSurfaceGridFunction< TDomain >::prolongate ( const GridMessage_Adaption msg,
const size_t  lvl 
)
protected

◆ select_parents()

◆ value_attachment()

template<typename TDomain >
AValues ug::AdaptionSurfaceGridFunction< TDomain >::value_attachment ( )
inline

◆ vertex_created()

template<typename TDomain >
virtual void ug::AdaptionSurfaceGridFunction< TDomain >::vertex_created ( Grid grid,
Vertex vrt,
GridObject pParent = NULL,
bool  replacesParent = false 
)
inlinevirtual

grid observer callbacks

Reimplemented from ug::GridObserver.

References ug::AdaptionSurfaceGridFunction< TDomain >::obj_created().

◆ volume_created()

template<typename TDomain >
virtual void ug::AdaptionSurfaceGridFunction< TDomain >::volume_created ( Grid grid,
Volume vol,
GridObject pParent = NULL,
bool  replacesParent = false 
)
inlinevirtual

grid observer callbacks

Reimplemented from ug::GridObserver.

References ug::AdaptionSurfaceGridFunction< TDomain >::obj_created().

Friends And Related Function Documentation

◆ ValueAccessor

template<typename TDomain >
friend class ValueAccessor
friend

Member Data Documentation

◆ m_aaValue

template<typename TDomain >
MultiElementAttachmentAccessor<AValues> ug::AdaptionSurfaceGridFunction< TDomain >::m_aaValue
protected

◆ m_aValue

template<typename TDomain >
AValues ug::AdaptionSurfaceGridFunction< TDomain >::m_aValue
protected

◆ m_bObserveStorage

template<typename TDomain >
bool ug::AdaptionSurfaceGridFunction< TDomain >::m_bObserveStorage
protected

◆ m_ParallelStorageType

template<typename TDomain >
int ug::AdaptionSurfaceGridFunction< TDomain >::m_ParallelStorageType
protected

◆ m_spDDInfo

template<typename TDomain >
ConstSmartPtr<DoFDistributionInfo> ug::AdaptionSurfaceGridFunction< TDomain >::m_spDDInfo
protected

◆ m_spDomain

template<typename TDomain >
SmartPtr<TDomain> ug::AdaptionSurfaceGridFunction< TDomain >::m_spDomain
protected

◆ m_spGrid

template<typename TDomain >
SmartPtr<MultiGrid> ug::AdaptionSurfaceGridFunction< TDomain >::m_spGrid
protected

◆ m_vpProlong

template<typename TDomain >
std::vector<SmartPtr<IElemProlongation<TDomain> > > ug::AdaptionSurfaceGridFunction< TDomain >::m_vpProlong
protected

◆ m_vpRestrict

template<typename TDomain >
std::vector<SmartPtr<IElemRestriction<TDomain> > > ug::AdaptionSurfaceGridFunction< TDomain >::m_vpRestrict
protected

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