136 static std::shared_ptr<AssmbScatrOp<TData>>
Create(
138 const std::vector<std::string> &components,
139 const std::string &execStr =
"")
142 expansionList, components, execStr);
147 static inline const std::string
name =
"AssmbScatr";
206 const std::vector<std::string> &components)
207 :
Operator<TData>(expansionList, components)
316 static std::shared_ptr<AssmbScatrZeroDirOp<TData>>
Create(
318 const std::vector<std::string> &components,
319 const std::string &execStr =
"")
322 expansionList, components, execStr);
327 static inline const std::string
name =
"AssmbScatrZeroDir";
333 const std::vector<std::string> &components)
381 static std::shared_ptr<AssmbScatrNoSignOp<TData>>
Create(
383 const std::vector<std::string> &components,
384 const std::string &execStr =
"")
387 expansionList, components, execStr);
392 static inline const std::string
name =
"AssmbScatrNoSign";
398 const std::vector<std::string> &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.
Assemble-scatter operator that ignores the orientation signs.
static const std::string name
Factory base name; implementations register under this name with an execution-space suffix appended (...
~AssmbScatrNoSignOp() override=default
AssmbScatrNoSignOp(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
Protected constructor; forwards the expansion list and component names to AssmbScatrOp.
static std::shared_ptr< AssmbScatrNoSignOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
Create an implementation of this operator through the operator factory.
Base class for the assemble-scatter operator: sums the local contributions to every global degree of ...
static std::shared_ptr< AssmbScatrOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
Create an assemble-scatter operator through the operator factory.
~AssmbScatrOp() override=default
void Apply(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Coeff > &out)
Assemble and scatter in, writing the result to out.
void operator()(LibUtilities::Field< TData, FieldState::Coeff > &inout)
Call operator; equivalent to the in-place Apply().
static const std::string name
Operator base name; Create() appends the execution space to it to form the factory key.
virtual void v_Apply(LibUtilities::Field< TData, FieldState::Coeff > &inout)=0
Implementation hook for the in-place Apply().
void Apply(LibUtilities::Field< TData, FieldState::Coeff > &inout)
Assemble and scatter inout in place.
void operator()(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Coeff > &out)
Call operator; equivalent to the two-field Apply().
AssmbScatrOp(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...
virtual void v_Apply(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Coeff > &out)=0
Implementation hook for the two-field Apply().
Assemble-scatter operator that also zeroes the global Dirichlet boundary degrees of freedom.
static const std::string name
Factory base name; implementations register under this name with an execution-space suffix appended (...
~AssmbScatrZeroDirOp() override=default
static std::shared_ptr< AssmbScatrZeroDirOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="")
Create an implementation of this operator through the operator factory.
AssmbScatrZeroDirOp(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
Protected constructor; forwards the expansion list and component names to AssmbScatrOp.
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.