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

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) final
 Perform operation. More...
 
void operator() (int dir, const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &wsp) final
 
virtual void CheckFactors (StdRegions::FactorMap factors, int coll_phys_offset)
 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 60 of file library/Collections/Helmholtz.cpp.

Constructor & Destructor Documentation

◆ ~Helmholtz_NoCollection()

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

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

66  {
67  }

◆ Helmholtz_NoCollection()

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

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

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

Member Function Documentation

◆ CheckFactors()

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

Check the validity of the supplied factor map.

Implements Nektar::Collections::Operator.

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

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

◆ 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 
)
inlinefinalvirtual

Perform operation.

Implements Nektar::Collections::Operator.

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

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

Implements Nektar::Collections::Operator.

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

96  {
97  boost::ignore_unused(dir, input, output, wsp);
98  NEKERROR(ErrorUtil::efatal, "Not valid for this operator.");
99  }
#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 111 of file library/Collections/Helmholtz.cpp.

◆ m_dim

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

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

◆ m_expList

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

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

◆ m_factors

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

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