Nektar++
Public Member Functions | Private Member Functions | List of all members
Nektar::Collections::BwdTrans_IterPerExp Class Reference

Backward transform operator using default StdRegions operator. More...

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

Public Member Functions

 ~BwdTrans_IterPerExp () final
 
void operator() (const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &output1, Array< OneD, NekDouble > &output2, Array< OneD, NekDouble > &wsp)
 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...
 

Private Member Functions

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

Additional Inherited Members

- 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
 

Detailed Description

Backward transform operator using default StdRegions operator.

Definition at line 260 of file BwdTrans.cpp.

Constructor & Destructor Documentation

◆ ~BwdTrans_IterPerExp()

Nektar::Collections::BwdTrans_IterPerExp::~BwdTrans_IterPerExp ( )
inlinefinal

Definition at line 265 of file BwdTrans.cpp.

266  {
267  }

◆ BwdTrans_IterPerExp()

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

Definition at line 305 of file BwdTrans.cpp.

308  : Operator(pCollExp, pGeomData, factors)
309  {
310  }
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::BwdTrans_IterPerExp::CheckFactors ( StdRegions::FactorMap  factors,
int  coll_phys_offset 
)
inlinevirtual

Check the validity of the supplied factor map.

Implements Nektar::Collections::Operator.

Definition at line 296 of file BwdTrans.cpp.

298  {
299  boost::ignore_unused(factors, coll_phys_offset);
300  ASSERTL0(false, "Not valid for this operator.");
301  }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:216

References ASSERTL0.

◆ operator()() [1/2]

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

Perform operation.

Implements Nektar::Collections::Operator.

Definition at line 269 of file BwdTrans.cpp.

274  {
275  boost::ignore_unused(output1, output2, wsp);
276 
277  const int nCoeffs = m_stdExp->GetNcoeffs();
278  const int nPhys = m_stdExp->GetTotPoints();
279  Array<OneD, NekDouble> tmp;
280 
281  for (int i = 0; i < m_numElmt; ++i)
282  {
283  m_stdExp->BwdTrans(input + i*nCoeffs, tmp = output + i*nPhys);
284  }
285  }
StdRegions::StdExpansionSharedPtr m_stdExp
Definition: Operator.h:167

◆ operator()() [2/2]

void Nektar::Collections::BwdTrans_IterPerExp::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 287 of file BwdTrans.cpp.

291  {
292  boost::ignore_unused(dir, input, output, wsp);
293  ASSERTL0(false, "Not valid for this operator.");
294  }

References ASSERTL0.