Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
Inheritance graph
[legend]
Collaboration diagram for Nektar::Collections::BwdTrans_SumFac_Seg:
Collaboration graph
[legend]

Public Member Functions

virtual ~BwdTrans_SumFac_Seg ()
 
virtual 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...
 
virtual void operator() (int dir, const Array< OneD, const NekDouble > &input, Array< OneD, NekDouble > &output, Array< OneD, NekDouble > &wsp)
 
- Public Member Functions inherited from Nektar::Collections::Operator
 Operator (std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, boost::shared_ptr< CoalescedGeomData > GeomData)
 Constructor. More...
 
virtual COLLECTIONS_EXPORT ~Operator ()
 
int GetWspSize ()
 Get the size of the required workspace. 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
StdRegions::StdExpansionSharedPtr m_stdExp
 
unsigned int m_numElmt
 
unsigned int m_wspSize
 

Private Member Functions

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

Detailed Description

Backward transform operator using sum-factorisation (Segment)

Definition at line 310 of file BwdTrans.cpp.

Constructor & Destructor Documentation

virtual Nektar::Collections::BwdTrans_SumFac_Seg::~BwdTrans_SumFac_Seg ( )
inlinevirtual

Definition at line 315 of file BwdTrans.cpp.

316  {
317  }
Nektar::Collections::BwdTrans_SumFac_Seg::BwdTrans_SumFac_Seg ( vector< StdRegions::StdExpansionSharedPtr pCollExp,
CoalescedGeomDataSharedPtr  pGeomData 
)
inlineprivate

Definition at line 357 of file BwdTrans.cpp.

360  : Operator (pCollExp, pGeomData),
361  m_nquad0 (m_stdExp->GetNumPoints(0)),
362  m_nmodes0 (m_stdExp->GetBasisNumModes(0)),
363  m_colldir0(m_stdExp->GetBasis(0)->Collocation()),
364  m_base0 (m_stdExp->GetBasis(0)->GetBdata())
365  {
366  m_wspSize = 0;
367  }
Operator(std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, boost::shared_ptr< CoalescedGeomData > GeomData)
Constructor.
Definition: Operator.h:112
Array< OneD, const NekDouble > m_base0
Definition: BwdTrans.cpp:354
StdRegions::StdExpansionSharedPtr m_stdExp
Definition: Operator.h:146

Member Function Documentation

virtual 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 319 of file BwdTrans.cpp.

References Vmath::Vcopy().

325  {
326  if(m_colldir0)
327  {
328  Vmath::Vcopy(m_numElmt*m_nmodes0,input.get(),1,output.get(),1);
329  }
330  else
331  {
332  // out = B0*in;
333  Blas::Dgemm('N','N', m_nquad0, m_numElmt, m_nmodes0,
334  1.0, m_base0.get(), m_nquad0,
335  &input[0], m_nmodes0, 0.0,
336  &output[0], m_nquad0);
337  }
338  }
Array< OneD, const NekDouble > m_base0
Definition: BwdTrans.cpp:354
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)
Definition: Vmath.cpp:1061
virtual void Nektar::Collections::BwdTrans_SumFac_Seg::operator() ( int  dir,
const Array< OneD, const NekDouble > &  input,
Array< OneD, NekDouble > &  output,
Array< OneD, NekDouble > &  wsp 
)
inlinevirtual

Implements Nektar::Collections::Operator.

Definition at line 340 of file BwdTrans.cpp.

References ASSERTL0.

345  {
346  ASSERTL0(false, "Not valid for this operator.");
347  }
#define ASSERTL0(condition, msg)
Definition: ErrorUtil.hpp:198

Member Data Documentation

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

Definition at line 354 of file BwdTrans.cpp.

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

Definition at line 353 of file BwdTrans.cpp.

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

Definition at line 352 of file BwdTrans.cpp.

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

Definition at line 351 of file BwdTrans.cpp.