114template <
typename TData>
138 static std::shared_ptr<CurlCurlOp<TData>>
Create(
139 const MultiRegions::ExpListSharedPtr &expansionList,
140 const std::vector<std::string> &components,
141 const std::string &execStr = "", const std::string &implStr = "")
144 template Create<CurlCurlOp, CurlCurlBlockOp>(
145 expansionList, components, execStr, implStr);
150 static inline const std::string
name =
"CurlCurl";
154 std::vector<std::shared_ptr<CurlCurlBlockOp<TData>>>
m_blockOp;
165 const std::vector<std::string> &components)
188 ASSERTL1(in.GetNumHomoModes() == out.GetNumHomoModes(),
189 "Number of input and output homogeneous modes differ");
192 for (
unsigned int blk = 0; blk < this->m_blockOp.size(); ++blk)
195 auto &inblock = in.GetBlocks()[blk];
196 auto &outblock = out.GetBlocks()[blk];
198 this->m_blockOp[blk]->Apply(inblock, outblock);
Per-block interface of the curl-curl element operator.
Whole-field base class and factory machinery shared by every element-operator family in the MultiRegi...
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
A Field represents expansion data to be operated on.
Whole-field interface of the curl-curl element operator: replaces the quadrature-point values of a ve...
static const std::string name
Operator base name; Create() appends the execution space to it to form the operator-factory key.
std::vector< std::shared_ptr< CurlCurlBlockOp< TData > > > m_blockOp
One block operator per element block, filled by Create().
~CurlCurlOp() override=default
void v_Apply(LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out) override
Apply the curl-curl operator block by block.
CurlCurlOp(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components)
Construct the interface part of a concrete operator; called by the factory-registered creator functio...
static std::shared_ptr< CurlCurlOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="")
Build a complete curl-curl operator through the operator and block-operator factories.
virtual void v_ApplyFFT(LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out)=0
Complete the double curl of a multi-plane 3DH1 field, of which the block operators have left the plan...
Common base class of the element-operator interfaces: an operator applied independently to every elem...
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
FieldState
Possible states for Field data.