SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::discretization::quadrature::backend::mfem::MFEMResolver Class Referencefinal

The MFEMResolver class is used to resolve the appropriate MFEM integration rule for a given quadrature context. It uses a policy to determine the appropriate order and other relevant information for the integration rule. More...

#include <mfem_resolver.hpp>

Collaboration diagram for serif::discretization::quadrature::backend::mfem::MFEMResolver:
[legend]

Public Member Functions

 MFEMResolver (Policy policy) noexcept
 Constructs an MFEMResolver with the given policy.
 
template<forms::Form FormT>
MFEMRule resolve (const MFEMQuadratureContext &context) const
 Resolves the appropriate MFEM integration rule for a given quadrature context and form type.
 
template<forms::Form FormT, ConfigurableIntegrator IntegratorT>
Resolution configure (IntegratorT &integrator, const MFEMQuadratureContext &context) const
 Configures an MFEM integrator with the appropriate integration rule for a given quadrature context and form type. This function will call the appropriate SetIntegrationRule method on the integrator based on its capabilities.
 

Private Attributes

Policy m_policy
 The policy used to determine the appropriate order and other relevant information for the integration rule.
 

Detailed Description

The MFEMResolver class is used to resolve the appropriate MFEM integration rule for a given quadrature context. It uses a policy to determine the appropriate order and other relevant information for the integration rule.

Constructor & Destructor Documentation

◆ MFEMResolver()

serif::discretization::quadrature::backend::mfem::MFEMResolver::MFEMResolver ( Policy policy)
inlineexplicitnoexcept

Constructs an MFEMResolver with the given policy.

Parameters
policyThe policy used to determine the appropriate order and other relevant information for the integration rule.

Member Function Documentation

◆ configure()

template<forms::Form FormT, ConfigurableIntegrator IntegratorT>
Resolution serif::discretization::quadrature::backend::mfem::MFEMResolver::configure ( IntegratorT & integrator,
const MFEMQuadratureContext & context ) const
inline

Configures an MFEM integrator with the appropriate integration rule for a given quadrature context and form type. This function will call the appropriate SetIntegrationRule method on the integrator based on its capabilities.

Template Parameters
FormTThe form type for which we are trying to configure the integrator.
IntegratorTThe type of the integrator to configure.
Parameters
integratorThe integrator to configure.
contextThe quadrature context describing the situation in which we are trying to configure the integrator.
Returns
The resolution of the MFEM integration rule used to configure the integrator.

◆ resolve()

template<forms::Form FormT>
MFEMRule serif::discretization::quadrature::backend::mfem::MFEMResolver::resolve ( const MFEMQuadratureContext & context) const
inlinenodiscard

Resolves the appropriate MFEM integration rule for a given quadrature context and form type.

Template Parameters
FormTThe form type for which we are trying to resolve an MFEM integration rule.
Parameters
contextThe quadrature context describing the situation in which we are trying to resolve an MFEM integration rule.
Returns
An MFEMRule struct containing the resolution and a pointer to the MFEM integration rule itself.

Member Data Documentation

◆ m_policy

Policy serif::discretization::quadrature::backend::mfem::MFEMResolver::m_policy
private

The policy used to determine the appropriate order and other relevant information for the integration rule.


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