Nektar++
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Nektar::Collections::Helmholtz_NoCollection Class Referencefinal

Helmholtz operator using LocalRegions implementation. More...

Inheritance diagram for Nektar::Collections::Helmholtz_NoCollection:
[legend]

Public Member Functions

 ~Helmholtz_NoCollection () final
 
void operator() (const Array< OneD, const NekDouble > &entry0, Array< OneD, NekDouble > &entry1, Array< OneD, NekDouble > &entry2, Array< OneD, NekDouble > &entry3, Array< OneD, NekDouble > &wsp) override final
 Perform operation. More...
 
void operator() (int dir, const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &wsp) override final
 
virtual void CheckFactors (StdRegions::FactorMap factors, int coll_phys_offset) override
 Check the validity of the supplied factor map. More...
 
- Public Member Functions inherited from Nektar::Collections::Operator
 Operator (std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, std::shared_ptr< CoalescedGeomData > GeomData, StdRegions::FactorMap factors)
 Constructor. More...
 
virtual COLLECTIONS_EXPORT ~Operator ()
 
unsigned int GetWspSize ()
 Get the size of the required workspace. More...
 
unsigned int GetNumElmt ()
 Get expansion pointer. More...
 
StdRegions::StdExpansionSharedPtr GetExpSharedPtr ()
 Get expansion pointer. More...
 

Protected Attributes

int m_dim
 
int m_coordim
 
vector< StdRegions::StdExpansionSharedPtrm_expList
 
StdRegions::FactorMap m_factors
 
- Protected Attributes inherited from Nektar::Collections::Operator
bool m_isDeformed
 
StdRegions::StdExpansionSharedPtr m_stdExp
 
unsigned int m_numElmt
 
unsigned int m_nqe
 
unsigned int m_wspSize
 

Private Member Functions

 Helmholtz_NoCollection (vector< StdRegions::StdExpansionSharedPtr > pCollExp, CoalescedGeomDataSharedPtr pGeomData, StdRegions::FactorMap factors)
 

Detailed Description

Helmholtz operator using LocalRegions implementation.

Definition at line 62 of file library/Collections/Helmholtz.cpp.

Constructor & Destructor Documentation

◆ ~Helmholtz_NoCollection()

Nektar::Collections::Helmholtz_NoCollection::~Helmholtz_NoCollection ( )
inlinefinal

Definition at line 67 of file library/Collections/Helmholtz.cpp.

68  {
69  }

◆ Helmholtz_NoCollection()

Nektar::Collections::Helmholtz_NoCollection::Helmholtz_NoCollection ( vector< StdRegions::StdExpansionSharedPtr pCollExp,
CoalescedGeomDataSharedPtr  pGeomData,
StdRegions::FactorMap  factors 
)
inlineprivate

Definition at line 114 of file library/Collections/Helmholtz.cpp.

117  : Operator(pCollExp, pGeomData, factors)
118  {
119  m_expList = pCollExp;
120  m_dim = pCollExp[0]->GetNumBases();
121  m_coordim = pCollExp[0]->GetCoordim();
122 
123  m_factors = factors;
124  }
vector< StdRegions::StdExpansionSharedPtr > m_expList
Operator(std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, std::shared_ptr< CoalescedGeomData > GeomData, StdRegions::FactorMap factors)
Constructor.
Definition: Operator.cpp:43

Member Function Documentation

◆ CheckFactors()

virtual void Nektar::Collections::Helmholtz_NoCollection::CheckFactors ( StdRegions::FactorMap  factors,
int  coll_phys_offset 
)
inlineoverridevirtual

Check the validity of the supplied factor map.

Implements Nektar::Collections::Operator.

Definition at line 100 of file library/Collections/Helmholtz.cpp.

102  {
103  boost::ignore_unused(coll_phys_offset);
104  m_factors = factors;
105  }

◆ operator()() [1/2]

void Nektar::Collections::Helmholtz_NoCollection::operator() ( const Array< OneD, const NekDouble > &  input,
Array< OneD, NekDouble > &  output0,
Array< OneD, NekDouble > &  output1,
Array< OneD, NekDouble > &  output2,
Array< OneD, NekDouble > &  wsp 
)
inlinefinaloverridevirtual

Perform operation.

Implements Nektar::Collections::Operator.

Definition at line 71 of file library/Collections/Helmholtz.cpp.

76  {
77  boost::ignore_unused(entry2, entry3, wsp);
78 
79  unsigned int nmodes = m_expList[0]->GetNcoeffs();
80  Array<OneD, NekDouble> tmp;
81 
82  for (int n = 0; n < m_numElmt; ++n)
83  {
84  StdRegions::StdMatrixKey mkey(StdRegions::eHelmholtz,
85  (m_expList)[n]->DetShapeType(),
86  *(m_expList)[n], m_factors);
87  m_expList[n]->GeneralMatrixOp(entry0 + n * nmodes,
88  tmp = entry1 + n * nmodes, mkey);
89  }
90  }

References Nektar::StdRegions::eHelmholtz.

◆ operator()() [2/2]

void Nektar::Collections::Helmholtz_NoCollection::operator() ( int  dir,
const Array< OneD, const NekDouble > &  input,
Array< OneD, NekDouble > &  output,
Array< OneD, NekDouble > &  wsp 
)
inlinefinaloverridevirtual

Implements Nektar::Collections::Operator.

Definition at line 92 of file library/Collections/Helmholtz.cpp.

95  {
96  boost::ignore_unused(dir, input, output, wsp);
97  NEKERROR(ErrorUtil::efatal, "Not valid for this operator.");
98  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode...
Definition: ErrorUtil.hpp:209

References NEKERROR.

Member Data Documentation

◆ m_coordim

int Nektar::Collections::Helmholtz_NoCollection::m_coordim
protected

Definition at line 109 of file library/Collections/Helmholtz.cpp.

◆ m_dim

int Nektar::Collections::Helmholtz_NoCollection::m_dim
protected

Definition at line 108 of file library/Collections/Helmholtz.cpp.

◆ m_expList

vector<StdRegions::StdExpansionSharedPtr> Nektar::Collections::Helmholtz_NoCollection::m_expList
protected

Definition at line 110 of file library/Collections/Helmholtz.cpp.

◆ m_factors

StdRegions::FactorMap Nektar::Collections::Helmholtz_NoCollection::m_factors
protected

Definition at line 111 of file library/Collections/Helmholtz.cpp.