98template <
typename TData>
125 static std::shared_ptr<BwdTransOp<TData>>
Create(
126 const MultiRegions::ExpListSharedPtr &expansionList,
127 const std::vector<std::string> &components,
128 const std::string &execStr = "", const std::string &implStr = "")
131 template Create<BwdTransOp, BwdTransBlockOp>(
132 expansionList, components, execStr, implStr);
137 static inline const std::string
name =
"BwdTrans";
152 for (
unsigned int blk = 0; blk <
m_blockOp.size(); ++blk)
161 std::vector<std::shared_ptr<BwdTransBlockOp<TData>>>
m_blockOp;
172 const std::vector<std::string> &components)
194 ASSERTL1(in.GetNumComponents() == out.GetNumComponents(),
195 "Number of input and output components differ");
197 ASSERTL1(in.GetNumHomoModes() == out.GetNumHomoModes(),
198 "Number of input and output homogeneous modes differ");
201 for (
unsigned int blk = 0; blk < this->m_blockOp.size(); ++blk)
204 auto &inblock = in.GetBlocks()[blk];
205 auto &outblock = out.GetBlocks()[blk];
207 this->m_blockOp[blk]->Apply(inblock, outblock);
Per-block interface class of the backward-transform 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 backward transform: evaluates a coefficient-space field at the quadratur...
BwdTransOp(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...
~BwdTransOp() override=default
static const std::string name
Operator base name; Create() appends the execution space to it to form the factory key.
std::vector< std::shared_ptr< BwdTransBlockOp< TData > > > m_blockOp
One block operator per element block of the expansion list; populated by ElmtOp::Create().
static std::shared_ptr< BwdTransOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="")
Create a backward-transform operator through the operator and block-operator factories.
void v_Apply(LibUtilities::Field< TData, FieldState::Coeff > &in, LibUtilities::Field< TData, FieldState::Phys > &out) override
Apply the backward transform block by block.
void SetAppend(const bool &append)
Switch all block operators between overwrite and accumulate mode.
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.