MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::ParTransferMap Class Reference

ParTransferMap represents a mapping of degrees of freedom from a source ParGridFunction to a destination ParGridFunction. More...

#include <ptransfermap.hpp>

Public Member Functions

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

Detailed Description

ParTransferMap represents a mapping of degrees of freedom from a source ParGridFunction to a destination ParGridFunction.

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

Definition at line 31 of file ptransfermap.hpp.

Constructor & Destructor Documentation

◆ ParTransferMap()

ParTransferMap::ParTransferMap ( const ParGridFunction & src,
const ParGridFunction & dst )

Construct a new ParTransferMap object which transfers degrees of freedom from the source ParGridFunction to the destination ParGridFunction.

Parameters
srcThe source ParGridFunction
dstThe destination ParGridFunction

Definition at line 22 of file ptransfermap.cpp.

Member Function Documentation

◆ Transfer()

void ParTransferMap::Transfer ( const ParGridFunction & src,
ParGridFunction & dst ) const

Transfer the source ParGridFunction to the destination ParGridFunction.

Uses the precomputed maps for the transfer.

Parameters
srcThe source ParGridFunction
dstThe destination ParGridFunction

Definition at line 159 of file ptransfermap.cpp.


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