![]() |
MFEM v4.8.0
Finite element discretization library
|
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 FiniteElementSpace &src, const FiniteElementSpace &dst) | |
Construct a new TransferMap object which transfers degrees of freedom from the source FiniteElementSpace to the destination FiniteElementSpace. | |
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. | |
void | Transfer (const GridFunction &src, GridFunction &dst) const |
Transfer the source GridFunction to the destination GridFunction. | |
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 31 of file transfermap.hpp.
TransferMap::TransferMap | ( | const FiniteElementSpace & | src, |
const FiniteElementSpace & | dst ) |
Construct a new TransferMap object which transfers degrees of freedom from the source FiniteElementSpace to the destination FiniteElementSpace.
src | The source FiniteElementSpace |
dst | The destination FiniteElementSpace |
Definition at line 18 of file transfermap.cpp.
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.
Equivalent to creating the TransferMap from the finite element spaces of each of the GridFunctions.
src | The source GridFunction |
dst | The destination GridFunction |
Definition at line 133 of file transfermap.cpp.
void TransferMap::Transfer | ( | const GridFunction & | src, |
GridFunction & | dst ) const |
Transfer the source GridFunction to the destination GridFunction.
Uses the precomputed maps for the transfer.
src | The source GridFunction |
dst | The destination GridFunction |
Definition at line 138 of file transfermap.cpp.