44template <
typename TData>
46 :
public ElmtBlockOp<FieldState::Phys, FieldState::Phys, TData>
49 static std::shared_ptr<PhysGalerkinProject1DScaledBlockOp<TData>>
Create(
50 const unsigned int block_idx,
53 const std::string &execStr,
const std::string &implStr)
56 template Create<PhysGalerkinProject1DScaledBlockOp>(
57 block_idx, exp, dataWarehouse, execStr, implStr);
60 static inline const std::string
name =
"BlockPhysGalerkinProject1DScaled";
77 const unsigned int block_idx,
96 const std::vector<unsigned int> &nq,
const NekDouble scale)
98 std::vector<unsigned int> nqScaled;
99 nqScaled.reserve(nq.size());
101 for (
size_t d = 0; d < nq.size(); ++d)
103 nqScaled.push_back((d != 0 && nq[0] - nq[d] == 1)
104 ?
static_cast<unsigned int>(scale * nq[0]) -
106 :
static_cast<unsigned int>(scale * nq[d]));
Block-level base class, implementation-strategy tags and device launch helpers shared by every elemen...
Base class of the per-family block operators: applies one element operation to every element of one b...
static const std::string name
~PhysGalerkinProject1DScaledBlockOp() override=default
void SetScaleFactor(const TData &scale)
virtual void v_SetScaleFactor(const TData &scale)=0
static std::vector< unsigned int > GetScaledNumPoints(const std::vector< unsigned int > &nq, const NekDouble scale)
The per-direction point counts of the scale over-integrated grid this operator's interpolation and pr...
static std::shared_ptr< PhysGalerkinProject1DScaledBlockOp< TData > > Create(const unsigned int block_idx, const LocalRegions::ExpansionSharedPtr &exp, LibUtilities::NekDataWarehouseSharedPtr dataWarehouse, const std::string &execStr, const std::string &implStr)
void SetAppend(const bool &append)
PhysGalerkinProject1DScaledBlockOp(const unsigned int block_idx, const LocalRegions::ExpansionSharedPtr &exp, LibUtilities::NekDataWarehouseSharedPtr dataWarehouse)
std::shared_ptr< NekDataWarehouse > NekDataWarehouseSharedPtr
std::shared_ptr< Expansion > ExpansionSharedPtr
FieldState
Possible states for Field data.