MFEM  v4.5.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::TransferMap Class Reference

TransferMap represents a mapping of degrees of freedom from a source GridFunction to a destination GridFunction. More...

#include <transfermap.hpp>

Public Member Functions

 TransferMap (const GridFunction &src, const GridFunction &dst)
 Construct a new TransferMap object which transfers degrees of freedom from the source GridFunction to the destination GridFunction. More...
 
void Transfer (const GridFunction &src, GridFunction &dst) const
 Transfer the source GridFunction to the destination GridFunction. More...
 
 ~TransferMap ()
 

Detailed Description

TransferMap represents a mapping of degrees of freedom from a source GridFunction to a destination GridFunction.

This map can be constructed from a parent Mesh to a SubMesh or vice versa. Additionally one can create it between two SubMeshes that share the same root parent. In this case, a supplemental FiniteElementSpace is created on the root parent Mesh to transfer degrees of freedom.

Definition at line 30 of file transfermap.hpp.

Constructor & Destructor Documentation

TransferMap::TransferMap ( const GridFunction src,
const GridFunction dst 
)

Construct a new TransferMap object which transfers degrees of freedom from the source GridFunction to the destination GridFunction.

Parameters
srcThe source GridFunction
dstThe destination Gridfunction

Definition at line 18 of file transfermap.cpp.

TransferMap::~TransferMap ( )

Definition at line 142 of file transfermap.cpp.

Member Function Documentation

void TransferMap::Transfer ( const GridFunction src,
GridFunction dst 
) const

Transfer the source GridFunction to the destination GridFunction.

Uses the precomputed maps for the transfer.

Parameters
srcThe source GridFunction
dstThe destination Gridfunction

Definition at line 90 of file transfermap.cpp.


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