4#ifndef MOFEM_COUPLER_INTERFACE_HPP
5#define MOFEM_COUPLER_INTERFACE_HPP
76 const std::vector<TagMap> &tags,
std::vector< int > source
#define MYPCOMM_INDEX
default communicator number PCOMM
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
implementation of Data Operators for Forces and Sources
CouplerInterface * createInterface< CouplerInterface >(const Core &core)
Construct the coupling implementation for MoFEM's interface factory.
Target-to-source matches tied to one generation of the backend point cache.
double relativeTolerance
Physical search distance = max(absoluteTolerance, relativeTolerance*L).
SourceLayout sourceLayout
Range locatedEntities
Disjoint local owned target sets. A failed fallback remains missing.
unsigned long long globalMissing
unsigned long long globalLocated
unsigned long long globalFallback
int component
-1 transfers all components; otherwise select one zero-based component.
Source selection, search backend and routing state shared by location batches.
~CouplerInterface() override=default
@ ADJACENT_ELEMENT_AVERAGE
boost::shared_ptr< const Locations > LocationsPtr
virtual MoFEMErrorCode destroyTransfer(TransferPtr &transfer)=0
Idempotent explicit close; invalidate aliases. Destructors never call MPI.
@ ELEMENT_RECOVERED_LINEAR
@ VERTEX_AVERAGED_CONSTANT
virtual MoFEMErrorCode locateTargets(const TransferPtr &transfer, const Selection &target, LocationsPtr &locations, Report &report)=0
virtual MoFEMErrorCode createTransfer(const Selection &source, const Options &options, TransferPtr &transfer)=0
Build a source-only search. Source elements require unique positive GLOBAL_IDs.
virtual MoFEMErrorCode transferTags(const TransferPtr &transfer, const LocationsPtr &locations, const std::vector< TagMap > &tags, Report &report)=0
boost::shared_ptr< Transfer > TransferPtr
base class for all interface classes