MFEM  v4.4.0
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...
 
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...
 

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
 
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 580 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 591 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 593 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 1636 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 647 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 639 of file restriction.hpp.

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

Return the total number of interpolators.

Definition at line 632 of file restriction.hpp.

void mfem::InterpolationManager::LinearizeInterpolatorMapIntoVector ( )

Transform the interpolation matrix map into a contiguous memory structure.

Definition at line 1751 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 1652 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 1645 of file restriction.cpp.

Member Data Documentation

const FiniteElementSpace& mfem::InterpolationManager::fes
protected

Definition at line 583 of file restriction.hpp.

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

Definition at line 585 of file restriction.hpp.

Map mfem::InterpolationManager::interp_map
protected

Definition at line 594 of file restriction.hpp.

Vector mfem::InterpolationManager::interpolators
protected

Definition at line 586 of file restriction.hpp.

int mfem::InterpolationManager::nc_cpt
protected

Definition at line 587 of file restriction.hpp.

const ElementDofOrdering mfem::InterpolationManager::ordering
protected

Definition at line 584 of file restriction.hpp.


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