Collection.
More...
#include <Collection.h>
|
COLLECTIONS_EXPORT | Collection (std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, OperatorImpMap &impTypes) |
|
void | ApplyOperator (const OperatorType &op, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &output) |
|
void | ApplyOperator (const OperatorType &op, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &output0, Array< OneD, NekDouble > &output1) |
|
void | ApplyOperator (const OperatorType &op, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &output0, Array< OneD, NekDouble > &output1, Array< OneD, NekDouble > &output2) |
|
void | ApplyOperator (const OperatorType &op, int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &output) |
|
bool | HasOperator (const OperatorType &op) |
|
Collection.
Definition at line 53 of file Collection.h.
◆ Collection()
Definition at line 46 of file Collection.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::Collections::GetOperatorFactory(), and Nektar::Collections::SIZE_OperatorType.
59 auto it = impTypes.find(opType);
60 if (it != impTypes.end())
63 OperatorKey opKey(pCollExp[0]->DetShapeType(), opType, impType,
64 pCollExp[0]->IsNodalNonTensorialExp());
69 "Requested unknown operator "+ss.str());
#define ASSERTL0(condition, msg)
CoalescedGeomDataSharedPtr m_geomData
std::tuple< LibUtilities::ShapeType, OperatorType, ImplementationType, ExpansionIsNodal > OperatorKey
Key for describing an Operator.
std::unordered_map< OperatorType, OperatorSharedPtr, EnumHash > m_ops
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
OperatorFactory & GetOperatorFactory()
Returns the singleton Operator factory object.
◆ ApplyOperator() [1/4]
Definition at line 102 of file Collection.h.
References m_ops, and Nektar::NullNekDouble1DArray.
107 Array<OneD, NekDouble> wsp(
m_ops[op]->GetWspSize());
static Array< OneD, NekDouble > NullNekDouble1DArray
std::unordered_map< OperatorType, OperatorSharedPtr, EnumHash > m_ops
◆ ApplyOperator() [2/4]
Definition at line 116 of file Collection.h.
References m_ops, and Nektar::NullNekDouble1DArray.
122 Array<OneD, NekDouble> wsp(
m_ops[op]->GetWspSize());
static Array< OneD, NekDouble > NullNekDouble1DArray
std::unordered_map< OperatorType, OperatorSharedPtr, EnumHash > m_ops
◆ ApplyOperator() [3/4]
Definition at line 130 of file Collection.h.
References m_ops.
137 Array<OneD, NekDouble> wsp(
m_ops[op]->GetWspSize());
138 (*
m_ops[op])(inarray, output0, output1, output2, wsp);
std::unordered_map< OperatorType, OperatorSharedPtr, EnumHash > m_ops
◆ ApplyOperator() [4/4]
Definition at line 144 of file Collection.h.
References m_ops.
150 Array<OneD, NekDouble> wsp(
m_ops[op]->GetWspSize());
151 (*
m_ops[op])(dir, inarray, output, wsp);
std::unordered_map< OperatorType, OperatorSharedPtr, EnumHash > m_ops
◆ HasOperator()
bool Nektar::Collections::Collection::HasOperator |
( |
const OperatorType & |
op | ) |
|
|
inline |
Definition at line 154 of file Collection.h.
References m_ops.
std::unordered_map< OperatorType, OperatorSharedPtr, EnumHash > m_ops
◆ m_geom
◆ m_geomData
◆ m_ops
◆ m_stdExp