Nektar++
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
 
void operator() (const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &output1, Array< OneD, NekDouble > &output2, Array< OneD, NekDouble > &wsp) override
 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 void operator() (const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output0, Array< OneD, NekDouble > &output1, Array< OneD, NekDouble > &output2, Array< OneD, NekDouble > &wsp=NullNekDouble1DArray)=0
 Perform operation. More...
 
virtual COLLECTIONS_EXPORT void operator() (int dir, const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &wsp=NullNekDouble1DArray)=0
 
virtual COLLECTIONS_EXPORT ~Operator ()
 
virtual COLLECTIONS_EXPORT void CheckFactors (StdRegions::FactorMap factors, int coll_phys_offset)=0
 Check the validity of the supplied factor map. More...
 
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 257 of file BwdTrans.cpp.

Constructor & Destructor Documentation

◆ ~BwdTrans_IterPerExp()

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

Definition at line 262 of file BwdTrans.cpp.

263 {
264 }

◆ BwdTrans_IterPerExp()

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

Definition at line 300 of file BwdTrans.cpp.

303 : Operator(pCollExp, pGeomData, factors)
304 {
305 }
Operator(std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, std::shared_ptr< CoalescedGeomData > GeomData, StdRegions::FactorMap factors)
Constructor.
Definition: Operator.cpp:43
StdRegions::ConstFactorMap factors

Member Function Documentation

◆ CheckFactors()

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

Check the validity of the supplied factor map.

Implements Nektar::Collections::Operator.

Definition at line 292 of file BwdTrans.cpp.

294 {
295 boost::ignore_unused(factors, coll_phys_offset);
296 ASSERTL0(false, "Not valid for this operator.");
297 }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:215

References ASSERTL0, and Nektar::VarcoeffHashingTest::factors.

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

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

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 
)
inlinefinaloverridevirtual

Implements Nektar::Collections::Operator.

Definition at line 284 of file BwdTrans.cpp.

287 {
288 boost::ignore_unused(dir, input, output, wsp);
289 ASSERTL0(false, "Not valid for this operator.");
290 }

References ASSERTL0.