4#ifndef MOFEM_DG_PROJECTION_INTERFACE_HPP
5#define MOFEM_DG_PROJECTION_INTERFACE_HPP
11struct ForcesAndSourcesCore;
32 boost::function<int(
int order_row,
int order_col,
int order_data)>;
35 int order_row,
int order_col,
43 using FieldMap = std::vector<std::pair<std::string, std::string>>;
50 std::tuple<std::vector<std::pair<std::string, std::string>>,
int>;
80 template <
typename ITEM>
struct Report {
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
std::bitset< BITREFLEVEL_SIZE > BitRefLevel
Bit structure attached to each entity identifying to what mesh entity is attached.
implementation of Data Operators for Forces and Sources
DGProjectionInterface * createInterface< DGProjectionInterface >(const Core &core)
double relativeMassResidual
Algebraic, not quadrature error.
RuleHook ruleHook
Order of a standard rule.
SetRuleHook setRuleHook
Explicit points and weights; takes precedence.
std::string optionsPrefix
Reserved for later H1 KSPs.
IntegrationRule targetRule
Tags: rule of the stored target values.
IntegrationRule sourceRule
Tags: rule that wrote the source values.
int quadratureOrder
Required for nonempty local targets.
double emptyValue
Uncovered points; tags use their default.
unsigned long long missingPoints
Took the empty value.
std::vector< ITEM > items
unsigned long long targetElements
Local selected count.
unsigned long long sampledPoints
Target quadrature queries.
DM dm
Caller-owned MoFEM DM spanning both mesh levels.
std::string elementName
Caller-owned finite element used for projection.
unsigned long long sourceElementsWithoutData
double sourceRelativeMassResidual
Source reconstruction.
double relativeMassResidual
Target local solves.
std::tuple< std::vector< std::pair< std::string, std::string > >, int > TagMap
virtual MoFEMErrorCode project(const Request< FieldMap > &request, Report< FieldReport > &report)=0
boost::function< MoFEMErrorCode(ForcesAndSourcesCore *fe_raw_ptr, int order_row, int order_col, int order_data)> SetRuleHook
virtual MoFEMErrorCode project(const Request< TagMap > &request, Report< TagReport > &report)=0
boost::function< int(int order_row, int order_col, int order_data)> RuleHook
Same signatures as ForcesAndSourcesCore::getRuleHook and setRuleHook.
std::vector< std::pair< std::string, std::string > > FieldMap
Pairs of source and target field names, projected together.
structure to get information from mofem into EntitiesFieldData
base class for all interface classes