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

Backward transform operator using sum-factorisation (Segment) More...

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

Public Member Functions

 ~BwdTrans_SumFac_Seg () 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...
 

Protected Attributes

const int m_nquad0
 
const int m_nmodes0
 
const bool m_colldir0
 
Array< OneD, const NekDoublem_base0
 
- 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

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

Detailed Description

Backward transform operator using sum-factorisation (Segment)

Definition at line 444 of file BwdTrans.cpp.

Constructor & Destructor Documentation

◆ ~BwdTrans_SumFac_Seg()

Nektar::Collections::BwdTrans_SumFac_Seg::~BwdTrans_SumFac_Seg ( )
inlinefinal

Definition at line 449 of file BwdTrans.cpp.

450  {
451  }

◆ BwdTrans_SumFac_Seg()

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

Definition at line 498 of file BwdTrans.cpp.

501  : Operator(pCollExp, pGeomData, factors), m_nquad0(m_stdExp->GetNumPoints(0)),
502  m_nmodes0(m_stdExp->GetBasisNumModes(0)),
503  m_colldir0(m_stdExp->GetBasis(0)->Collocation()),
504  m_base0(m_stdExp->GetBasis(0)->GetBdata())
505  {
506  m_wspSize = 0;
507  }
Array< OneD, const NekDouble > m_base0
Definition: BwdTrans.cpp:495
StdRegions::StdExpansionSharedPtr m_stdExp
Definition: Operator.h:167
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_SumFac_Seg::CheckFactors ( StdRegions::FactorMap  factors,
int  coll_phys_offset 
)
inlinevirtual

Check the validity of the supplied factor map.

Implements Nektar::Collections::Operator.

Definition at line 483 of file BwdTrans.cpp.

485  {
486  boost::ignore_unused(factors, coll_phys_offset);
487  ASSERTL0(false, "Not valid for this operator.");
488  }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:216

References ASSERTL0.

◆ operator()() [1/2]

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

458  {
459  boost::ignore_unused(output1, output2, wsp);
460  if(m_colldir0)
461  {
462  Vmath::Vcopy(m_numElmt*m_nmodes0,input.get(),1,output.get(),1);
463  }
464  else
465  {
466  // out = B0*in;
468  1.0, m_base0.get(), m_nquad0,
469  &input[0], m_nmodes0, 0.0,
470  &output[0], m_nquad0);
471  }
472  }
static void Dgemm(const char &transa, const char &transb, const int &m, const int &n, const int &k, const double &alpha, const double *a, const int &lda, const double *b, const int &ldb, const double &beta, double *c, const int &ldc)
BLAS level 3: Matrix-matrix multiply C = A x B where op(A)[m x k], op(B)[k x n], C[m x n] DGEMM perfo...
Definition: Blas.hpp:394
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Definition: Vmath.cpp:1199

References Blas::Dgemm(), and Vmath::Vcopy().

◆ operator()() [2/2]

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

478  {
479  boost::ignore_unused(dir, input, output, wsp);
480  ASSERTL0(false, "Not valid for this operator.");
481  }

References ASSERTL0.

Member Data Documentation

◆ m_base0

Array<OneD, const NekDouble> Nektar::Collections::BwdTrans_SumFac_Seg::m_base0
protected

Definition at line 495 of file BwdTrans.cpp.

◆ m_colldir0

const bool Nektar::Collections::BwdTrans_SumFac_Seg::m_colldir0
protected

Definition at line 494 of file BwdTrans.cpp.

◆ m_nmodes0

const int Nektar::Collections::BwdTrans_SumFac_Seg::m_nmodes0
protected

Definition at line 493 of file BwdTrans.cpp.

◆ m_nquad0

const int Nektar::Collections::BwdTrans_SumFac_Seg::m_nquad0
protected

Definition at line 492 of file BwdTrans.cpp.