169template <
typename TData>
171 :
public ElmtOp<FieldState::Phys, FieldState::Phys, TData>
199 static std::shared_ptr<PhysInterp1DScaledOp<TData>>
Create(
200 const MultiRegions::ExpListSharedPtr &expansionList,
201 const std::vector<std::string> &components,
202 const std::string &execStr = "", const std::string &implStr = "")
205 template Create<PhysInterp1DScaledOp, PhysInterp1DScaledBlockOp>(
206 expansionList, components, execStr, implStr);
211 static inline const std::string
name =
"PhysInterp1DScaled";
231 for (
unsigned int blk = 0; blk < this->
m_blockOp.size(); ++blk)
233 this->
m_blockOp[blk]->SetScaleFactor(scale);
240 std::vector<std::shared_ptr<PhysInterp1DScaledBlockOp<TData>>>
m_blockOp;
251 const std::vector<std::string> &components)
276 ASSERTL1(in.GetNumComponents() == out.GetNumComponents(),
277 "Number of input and output components differ");
279 ASSERTL1(in.GetNumHomoModes() == out.GetNumHomoModes(),
280 "Number of input and output homogeneous modes differ");
283 for (
unsigned int blk = 0; blk < this->m_blockOp.size(); ++blk)
286 auto &inblock = in.GetBlocks()[blk];
287 auto &outblock = out.GetBlocks()[blk];
289 this->m_blockOp[blk]->Apply(inblock, outblock);
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....
Per-block interface class of the scaled physical-space interpolation operator.
A Field represents expansion data to be operated on.
Common base class of the element-operator interfaces: an operator applied independently to every elem...
Whole-field interface of the scaled physical-space interpolation: re-evaluates a physical-space field...
static const std::string name
Operator base name; Create() appends the execution space to it to form the operator-factory key.
void v_Apply(LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out) override
Interpolate block by block.
void SetScaleFactor(TData scale)
Set the scale factor of every block operator, fixing the number of output points per direction.
PhysInterp1DScaledOp(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...
~PhysInterp1DScaledOp() override=default
std::vector< std::shared_ptr< PhysInterp1DScaledBlockOp< TData > > > m_blockOp
One block operator per element block of the expansion list; populated by ElmtOp::Create().
static std::shared_ptr< PhysInterp1DScaledOp< TData > > Create(const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="")
Create a scaled-interpolation operator through the operator and block-operator factories.
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
FieldState
Possible states for Field data.