76template <
typename TData>
78 :
public ElmtBlockOp<FieldState::Coeff, FieldState::Coeff, TData>
98 static std::shared_ptr<MassBlockOp<TData>>
Create(
99 const unsigned int block_idx,
102 const std::string &execStr,
const std::string &implStr)
105 TData>::template Create<MassBlockOp>(block_idx, exp,
113 static inline const std::string
name =
"BlockMass";
150 block_idx, exp, dataWarehouse)
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...
Base class of the per-block mass operators: applies the element mass matrix to every element of one b...
void SetScale(const TData &scale)
Set the scalar factor applied to the result; see MassOp::SetScale.
MassBlockOp(const unsigned int block_idx, const LocalRegions::ExpansionSharedPtr &exp, LibUtilities::NekDataWarehouseSharedPtr dataWarehouse)
Construct the interface part of a concrete block operator; called by the factory-registered creator f...
static std::shared_ptr< MassBlockOp< TData > > Create(const unsigned int block_idx, const LocalRegions::ExpansionSharedPtr &exp, LibUtilities::NekDataWarehouseSharedPtr dataWarehouse, const std::string &execStr, const std::string &implStr)
Create one Mass block operator through the block-operator factory.
TData m_scale
Scalar factor applied to the result (default 1).
static const std::string name
Block-operator base name; Create() appends the execution space and implementation to it to form the f...
void SetAppend(const bool &append)
Set overwrite (false, the default) or accumulate (true) mode for subsequent Apply() calls; see MassOp...
bool m_append
When true, Apply() adds the scaled result onto the output block's existing values instead of overwrit...
~MassBlockOp() override=default
std::shared_ptr< NekDataWarehouse > NekDataWarehouseSharedPtr
std::shared_ptr< Expansion > ExpansionSharedPtr
FieldState
Possible states for Field data.