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

This class manages the storage and computation of the interpolations from master (coarse) face to slave (fine) face. More...

#include <restriction.hpp>

Collaboration diagram for mfem::InterpolationManager:
[legend]

Public Member Functions

 InterpolationManager ()=delete
 
 InterpolationManager (const FiniteElementSpace &fes, ElementDofOrdering ordering, FaceType type)
 main constructor. More...
 
void RegisterFaceConformingInterpolation (const Mesh::FaceInformation &face, int face_index)
 Register the face with face and index face_index as a conforming face for the interpolation of the degrees of freedom. More...
 
void RegisterFaceCoarseToFineInterpolation (const Mesh::FaceInformation &face, int face_index)
 Register the face with face and index face_index as a conforming face for the interpolation of the degrees of freedom. More...
 
void LinearizeInterpolatorMapIntoVector ()
 Transform the interpolation matrix map into a contiguous memory structure. More...
 
void InitializeNCInterpConfig ()
 
int GetNumInterpolators () const
 Return the total number of interpolators. More...
 
const VectorGetInterpolators () const
 Return an mfem::Vector containing the interpolators in the following format: face_dofs x face_dofs x num_interpolators. More...
 
const Array< InterpConfig > & GetFaceInterpConfig () const
 Return an array containing the interpolation configuration for each face registered with RegisterFaceConformingInterpolation and RegisterFaceCoarseToFineInterpolation. More...
 
const Array< NCInterpConfig > & GetNCFaceInterpConfig () const
 Return an array containing the interpolation configuration for each face registered with RegisterFaceConformingInterpolation and RegisterFaceCoarseToFineInterpolation. More...
 

Protected Types

using Key = std::pair< const DenseMatrix *, int >
 
using Map = std::map< Key, std::pair< int, const DenseMatrix * >>
 The temporary map used to store the different interpolators. More...
 

Protected Attributes

const FiniteElementSpacefes
 
const ElementDofOrdering ordering
 
Array< InterpConfiginterp_config
 
Array< NCInterpConfignc_interp_config
 
Vector interpolators
 
int nc_cpt
 
Map interp_map
 

Detailed Description

This class manages the storage and computation of the interpolations from master (coarse) face to slave (fine) face.

Definition at line 665 of file restriction.hpp.

Member Typedef Documentation

using mfem::InterpolationManager::Key = std::pair<const DenseMatrix*,int>
protected

The interpolators are associated to a key of containing the address of PointMatrix and a local face identifier.

Definition at line 677 of file restriction.hpp.

using mfem::InterpolationManager::Map = std::map<Key, std::pair<int,const DenseMatrix*>>
protected

The temporary map used to store the different interpolators.

Definition at line 679 of file restriction.hpp.

Constructor & Destructor Documentation

mfem::InterpolationManager::InterpolationManager ( )
delete
mfem::InterpolationManager::InterpolationManager ( const FiniteElementSpace fes,
ElementDofOrdering  ordering,
FaceType  type 
)

main constructor.

Parameters
[in]fesThe FiniteElementSpace on which this operates
[in]orderingRequest a specific element ordering.
[in]typeRequest internal or boundary faces dofs

Definition at line 1664 of file restriction.cpp.

Member Function Documentation

const Array<InterpConfig>& mfem::InterpolationManager::GetFaceInterpConfig ( ) const
inline

Return an array containing the interpolation configuration for each face registered with RegisterFaceConformingInterpolation and RegisterFaceCoarseToFineInterpolation.

Definition at line 735 of file restriction.hpp.

const Vector& mfem::InterpolationManager::GetInterpolators ( ) const
inline

Return an mfem::Vector containing the interpolators in the following format: face_dofs x face_dofs x num_interpolators.

Definition at line 727 of file restriction.hpp.

const Array<NCInterpConfig>& mfem::InterpolationManager::GetNCFaceInterpConfig ( ) const
inline

Return an array containing the interpolation configuration for each face registered with RegisterFaceConformingInterpolation and RegisterFaceCoarseToFineInterpolation.

Definition at line 743 of file restriction.hpp.

int mfem::InterpolationManager::GetNumInterpolators ( ) const
inline

Return the total number of interpolators.

Definition at line 720 of file restriction.hpp.

void mfem::InterpolationManager::InitializeNCInterpConfig ( )

Definition at line 1805 of file restriction.cpp.

void mfem::InterpolationManager::LinearizeInterpolatorMapIntoVector ( )

Transform the interpolation matrix map into a contiguous memory structure.

Definition at line 1779 of file restriction.cpp.

void mfem::InterpolationManager::RegisterFaceCoarseToFineInterpolation ( const Mesh::FaceInformation face,
int  face_index 
)

Register the face with face and index face_index as a conforming face for the interpolation of the degrees of freedom.

Parameters
[in]faceThe face information of the current face.
[in]face_indexThe interior/boundary face index.

Definition at line 1680 of file restriction.cpp.

void mfem::InterpolationManager::RegisterFaceConformingInterpolation ( const Mesh::FaceInformation face,
int  face_index 
)

Register the face with face and index face_index as a conforming face for the interpolation of the degrees of freedom.

Parameters
[in]faceThe face information of the current face.
[in]face_indexThe interior/boundary face index.

Definition at line 1673 of file restriction.cpp.

Member Data Documentation

const FiniteElementSpace& mfem::InterpolationManager::fes
protected

Definition at line 668 of file restriction.hpp.

Array<InterpConfig> mfem::InterpolationManager::interp_config
protected

Definition at line 670 of file restriction.hpp.

Map mfem::InterpolationManager::interp_map
protected

Definition at line 680 of file restriction.hpp.

Vector mfem::InterpolationManager::interpolators
protected

Definition at line 672 of file restriction.hpp.

int mfem::InterpolationManager::nc_cpt
protected

Definition at line 673 of file restriction.hpp.

Array<NCInterpConfig> mfem::InterpolationManager::nc_interp_config
protected

Definition at line 671 of file restriction.hpp.

const ElementDofOrdering mfem::InterpolationManager::ordering
protected

Definition at line 669 of file restriction.hpp.


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