MFEM  v3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag > Class Template Reference

#include <pncmesh.hpp>

Inheritance diagram for mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >:
[legend]
Collaboration diagram for mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >:
[legend]

Public Member Functions

int Size () const
 
void Reserve (int size)
 
void Add (Element *elem, ValueType val)
 
void SetNCMesh (ParNCMesh *pncmesh)
 Set pointer to ParNCMesh (needed to encode the message). More...
 
 ElementValueMessage ()
 
- Public Member Functions inherited from mfem::VarMessage< Tag >
void Isend (int rank, MPI_Comm comm)
 Non-blocking send to processor 'rank'. More...
 
void Recv (int rank, int size, MPI_Comm comm)
 Post-probe receive from processor 'rank' of message size 'size'. More...
 
 VarMessage ()
 
void Clear ()
 
virtual ~VarMessage ()
 
 VarMessage (const VarMessage &other)
 

Public Attributes

std::vector< Element * > elements
 
std::vector< ValueType > values
 
- Public Attributes inherited from mfem::VarMessage< Tag >
std::string data
 
MPI_Request send_request
 

Protected Member Functions

virtual void Encode ()
 
virtual void Decode ()
 

Protected Attributes

ParNCMeshpncmesh
 

Additional Inherited Members

- Static Public Member Functions inherited from mfem::VarMessage< Tag >
template<typename MapT >
static void IsendAll (MapT &rank_msg, MPI_Comm comm)
 Helper to send all messages in a rank-to-message map container. More...
 
template<typename MapT >
static void WaitAllSent (MapT &rank_msg)
 Helper to wait for all messages in a map container to be sent. More...
 
static void Probe (int &rank, int &size, MPI_Comm comm)
 
static bool IProbe (int &rank, int &size, MPI_Comm comm)
 
template<typename MapT >
static void RecvAll (MapT &rank_msg, MPI_Comm comm)
 Helper to receive all messages in a rank-to-message map container. More...
 

Detailed Description

template<class ValueType, bool RefTypes, int Tag>
class mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >

A base for internal messages used by Refine(), Derefine() and Rebalance(). Allows sending values associated with elements in a set. If RefType == true, the element set is recreated on the receiving end.

Definition at line 381 of file pncmesh.hpp.

Constructor & Destructor Documentation

template<class ValueType, bool RefTypes, int Tag>
mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::ElementValueMessage ( )
inline

Definition at line 397 of file pncmesh.hpp.

Member Function Documentation

template<class ValueType, bool RefTypes, int Tag>
void mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::Add ( Element elem,
ValueType  val 
)
inline

Definition at line 391 of file pncmesh.hpp.

template<class ValueType , bool RefTypes, int Tag>
void mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::Decode ( )
protectedvirtual

Reimplemented from mfem::VarMessage< Tag >.

Definition at line 2147 of file pncmesh.cpp.

template<class ValueType , bool RefTypes, int Tag>
void mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::Encode ( )
protectedvirtual

Reimplemented from mfem::VarMessage< Tag >.

Definition at line 2113 of file pncmesh.cpp.

template<class ValueType, bool RefTypes, int Tag>
void mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::Reserve ( int  size)
inline

Definition at line 389 of file pncmesh.hpp.

template<class ValueType, bool RefTypes, int Tag>
void mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::SetNCMesh ( ParNCMesh pncmesh)
inline

Set pointer to ParNCMesh (needed to encode the message).

Definition at line 395 of file pncmesh.hpp.

template<class ValueType, bool RefTypes, int Tag>
int mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::Size ( ) const
inline

Definition at line 388 of file pncmesh.hpp.

Member Data Documentation

template<class ValueType, bool RefTypes, int Tag>
std::vector<Element*> mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::elements

Definition at line 385 of file pncmesh.hpp.

template<class ValueType, bool RefTypes, int Tag>
ParNCMesh* mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::pncmesh
protected

Definition at line 400 of file pncmesh.hpp.

template<class ValueType, bool RefTypes, int Tag>
std::vector<ValueType> mfem::ParNCMesh::ElementValueMessage< ValueType, RefTypes, Tag >::values

Definition at line 386 of file pncmesh.hpp.


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