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::IProductWRTBase_NoCollection Class Reference

Inner product operator using original MultiRegions implementation. More...

Inheritance diagram for Nektar::Collections::IProductWRTBase_NoCollection:
Inheritance graph
[legend]
Collaboration diagram for Nektar::Collections::IProductWRTBase_NoCollection:
Collaboration graph
[legend]

Public Member Functions

virtual ~IProductWRTBase_NoCollection ()
 
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

vector
< StdRegions::StdExpansionSharedPtr
m_expList
 
- Protected Attributes inherited from Nektar::Collections::Operator
StdRegions::StdExpansionSharedPtr m_stdExp
 
unsigned int m_numElmt
 
unsigned int m_wspSize
 

Private Member Functions

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

Detailed Description

Inner product operator using original MultiRegions implementation.

Definition at line 262 of file IProductWRTBase.cpp.

Constructor & Destructor Documentation

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

Definition at line 267 of file IProductWRTBase.cpp.

268  {
269  }
Nektar::Collections::IProductWRTBase_NoCollection::IProductWRTBase_NoCollection ( vector< StdRegions::StdExpansionSharedPtr pCollExp,
CoalescedGeomDataSharedPtr  pGeomData 
)
inlineprivate

Definition at line 304 of file IProductWRTBase.cpp.

307  : Operator(pCollExp, pGeomData)
308  {
309  m_expList = pCollExp;
310  }
Operator(std::vector< StdRegions::StdExpansionSharedPtr > pCollExp, boost::shared_ptr< CoalescedGeomData > GeomData)
Constructor.
Definition: Operator.h:112
vector< StdRegions::StdExpansionSharedPtr > m_expList

Member Function Documentation

virtual void Nektar::Collections::IProductWRTBase_NoCollection::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 271 of file IProductWRTBase.cpp.

277  {
278 
279  const int nCoeffs = m_expList[0]->GetNcoeffs();
280  const int nPhys = m_expList[0]->GetTotPoints();
281  Array<OneD, NekDouble> tmp;
282 
283  for (int i = 0; i < m_numElmt; ++i)
284  {
285  m_expList[i]->IProductWRTBase(input + i*nPhys,
286  tmp = output + i*nCoeffs);
287  }
288 
289  }
vector< StdRegions::StdExpansionSharedPtr > m_expList
virtual void Nektar::Collections::IProductWRTBase_NoCollection::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 291 of file IProductWRTBase.cpp.

References ASSERTL0.

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

Member Data Documentation

vector<StdRegions::StdExpansionSharedPtr> Nektar::Collections::IProductWRTBase_NoCollection::m_expList
protected

Definition at line 301 of file IProductWRTBase.cpp.