93 static std::shared_ptr<AvgAssmbScatrOp<TData>>
Create(
95 const std::vector<std::string> &components,
96 const std::string &execStr =
"")
99 expansionList, components, execStr);
104 static inline const std::string
name =
"AvgAssmbScatr";
152 const std::vector<std::string> &components)
153 :
Operator<TData>(expansionList, components)
Whole-field operator base class and factory machinery shared by every operator family in the MultiReg...
A Field represents expansion data to be operated on.
Base class for the averaging assemble-scatter operator: replaces every local copy of each global degr...
void operator()(LibUtilities::Field< TData, FieldState::Coeff > &inout)
Call operator; equivalent to the in-place Apply().
virtual void v_Apply(LibUtilities::Field< TData, FieldState::Coeff > &inout)=0
Implementation hook for the in-place Apply().
virtual void v_Apply(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Coeff > &out)=0
Implementation hook for the two-field Apply().
void operator()(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Coeff > &out)
Call operator; equivalent to the two-field Apply().
static std::shared_ptr< AvgAssmbScatrOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
Create an averaging assemble-scatter operator through the operator factory.
AvgAssmbScatrOp(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
Construct the interface part of a concrete implementation; called by the factory-registered creator f...
~AvgAssmbScatrOp() override=default
static const std::string name
Operator base name; Create() appends the execution space to it to form the factory key.
void Apply(LibUtilities::Field< TData, FieldState::Coeff > &inout)
Average the local copies of inout in place.
void Apply(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Coeff > &out)
Average the local copies of in, writing the result to out.
Common base class of the operator family interfaces: holds the expansion list, component names and da...
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.