Nektar++
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Nektar::Collections::BwdTrans_IterPerExp Class Referencefinal

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

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

Public Member Functions

 ~BwdTrans_IterPerExp () final=default
 
void operator() (const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output0, Array< OneD, NekDouble > &output1, Array< OneD, NekDouble > &output2, Array< OneD, NekDouble > &wsp) override
 Perform operation.
 
void operator() (int dir, const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &wsp) final
 
- Public Member Functions inherited from Nektar::Collections::Operator
 Operator (std::vector< LocalRegions::ExpansionSharedPtr > pCollExp, std::shared_ptr< CoalescedGeomData > GeomData, StdRegions::FactorMap factors)
 Constructor.
 
virtual ~Operator ()=default
 
virtual COLLECTIONS_EXPORT void UpdateFactors (StdRegions::FactorMap factors)
 Update the supplied factor map.
 
virtual COLLECTIONS_EXPORT void UpdateVarcoeffs (StdRegions::VarCoeffMap &varcoeffs)
 Update the supplied variable coefficients.
 
unsigned int GetWspSize ()
 Get the size of the required workspace.
 
unsigned int GetNumElmt ()
 Get number of elements.
 
StdRegions::StdExpansionSharedPtr GetExpSharedPtr ()
 Get expansion pointer.
 
unsigned int GetInputSize (void)
 
unsigned int GetOutputSize (void)
 
unsigned int GetPhysSize (void)
 
unsigned int GetCoeffSize (void)
 

Private Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from Nektar::Collections::BwdTrans_Helper
 BwdTrans_Helper ()
 
- Protected Attributes inherited from Nektar::Collections::Operator
bool m_isDeformed
 
StdRegions::StdExpansionSharedPtr m_stdExp
 
unsigned int m_numElmt
 number of elements that the operator is applied on
 
unsigned int m_nqe
 
unsigned int m_wspSize
 
unsigned int m_inputSize
 number of modes or quadrature points that are passed as input to an operator
 
unsigned int m_outputSize
 number of modes or quadrature points that are taken as output from an operator
 

Detailed Description

Backward transform operator using default StdRegions operator.

Definition at line 248 of file BwdTrans.cpp.

Constructor & Destructor Documentation

◆ ~BwdTrans_IterPerExp()

Nektar::Collections::BwdTrans_IterPerExp::~BwdTrans_IterPerExp ( )
finaldefault

◆ BwdTrans_IterPerExp()

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

Definition at line 281 of file BwdTrans.cpp.

284 : Operator(pCollExp, pGeomData, factors), BwdTrans_Helper()
285 {
286 }
Operator(std::vector< LocalRegions::ExpansionSharedPtr > pCollExp, std::shared_ptr< CoalescedGeomData > GeomData, StdRegions::FactorMap factors)
Constructor.
Definition Operator.cpp:66

Member Function Documentation

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

Perform operation.

Implements Nektar::Collections::Operator.

Definition at line 256 of file BwdTrans.cpp.

261 {
262 const int nCoeffs = m_stdExp->GetNcoeffs();
263 const int nPhys = m_stdExp->GetTotPoints();
264 Array<OneD, NekDouble> tmp;
265
266 for (int i = 0; i < m_numElmt; ++i)
267 {
268 m_stdExp->BwdTrans(input + i * nCoeffs, tmp = output0 + i * nPhys);
269 }
270 }
StdRegions::StdExpansionSharedPtr m_stdExp
Definition Operator.h:230
unsigned int m_numElmt
number of elements that the operator is applied on
Definition Operator.h:232

References Nektar::Collections::Operator::m_numElmt, and Nektar::Collections::Operator::m_stdExp.

◆ 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 272 of file BwdTrans.cpp.

276 {
277 ASSERTL0(false, "Not valid for this operator.");
278 }
#define ASSERTL0(condition, msg)

References ASSERTL0.