LifeV
GraphElement< MeshType, TestSpaceType, SolutionSpaceType, ExpressionType > Class Template Reference

The class to actually perform the loop over the elements to precompute a graph. More...

#include <GraphElement.hpp>

+ Collaboration diagram for GraphElement< MeshType, TestSpaceType, SolutionSpaceType, ExpressionType >:

Private Attributes

std::shared_ptr< MeshTypeM_mesh
 
QuadratureRule M_quadrature
 
std::shared_ptr< TestSpaceType > M_testSpace
 
std::shared_ptr< SolutionSpaceType > M_solutionSpace
 
OpenMPParameters M_ompParams
 
UInt M_offsetUp
 
UInt M_offsetLeft
 

Public Types

typedef ExpressionToEvaluation< ExpressionType, TestSpaceType::field_dim, SolutionSpaceType::field_dim, 3 >::evaluation_Type evaluation_Type
 Type of the Evaluation. More...
 

Constructors, destructor

 GraphElement (const std::shared_ptr< MeshType > &mesh, const QuadratureRule &quadrature, const std::shared_ptr< TestSpaceType > &testSpace, const std::shared_ptr< SolutionSpaceType > &solutionSpace, const ExpressionType &expression, const OpenMPParameters &ompParams, const UInt offsetUp=0, const UInt offsetLeft=0)
 Full data constructor. More...
 
 GraphElement (const GraphElement< MeshType, TestSpaceType, SolutionSpaceType, ExpressionType > &integrator)
 Copy constructor. More...
 
 ~GraphElement ()
 Destructor. More...
 

Operators

template<typename GraphType >
void operator>> (std::shared_ptr< GraphType > graph)
 Operator wrapping the addTo method (for shared_ptr) More...
 

Methods

void check (std::ostream &out=std::cout)
 Ouput method. More...
 
template<typename GraphType >
void addTo (GraphType &graph)
 Method that builds the graph. More...
 
template<typename GraphType >
void addTo (std::shared_ptr< GraphType > graph)
 Method that performs the assembly. More...
 

Private Methods

 GraphElement ()
 No empty constructor. More...
 

Detailed Description

template<typename MeshType, typename TestSpaceType, typename SolutionSpaceType, typename ExpressionType>
class LifeV::ExpressionAssembly::GraphElement< MeshType, TestSpaceType, SolutionSpaceType, ExpressionType >

The class to actually perform the loop over the elements to precompute a graph.

Author
Radu Popescu radu..nosp@m.pope.nosp@m.scu@e.nosp@m.pfl..nosp@m.ch

This class is used to store the data required for building the graph of a matrix

Definition at line 76 of file GraphElement.hpp.

Member Typedef Documentation

◆ evaluation_Type

typedef ExpressionToEvaluation< ExpressionType, TestSpaceType::field_dim, SolutionSpaceType::field_dim, 3 >::evaluation_Type evaluation_Type

Type of the Evaluation.

Definition at line 87 of file GraphElement.hpp.

Constructor & Destructor Documentation

◆ GraphElement() [1/3]

GraphElement ( const std::shared_ptr< MeshType > &  mesh,
const QuadratureRule quadrature,
const std::shared_ptr< TestSpaceType > &  testSpace,
const std::shared_ptr< SolutionSpaceType > &  solutionSpace,
const ExpressionType &  expression,
const OpenMPParameters ompParams,
const UInt  offsetUp = 0,
const UInt  offsetLeft = 0 
)

Full data constructor.

Definition at line 199 of file GraphElement.hpp.

+ Here is the caller graph for this function:

◆ GraphElement() [2/3]

GraphElement ( const GraphElement< MeshType, TestSpaceType, SolutionSpaceType, ExpressionType > &  integrator)

Copy constructor.

Definition at line 219 of file GraphElement.hpp.

+ Here is the caller graph for this function:

◆ ~GraphElement()

Destructor.

Definition at line 232 of file GraphElement.hpp.

◆ GraphElement() [3/3]

GraphElement ( )
private

No empty constructor.

Member Function Documentation

◆ operator>>()

void operator>> ( std::shared_ptr< GraphType >  graph)
inline

Operator wrapping the addTo method (for shared_ptr)

Definition at line 122 of file GraphElement.hpp.

◆ check()

void check ( std::ostream &  out = std::cout)

Ouput method.

Definition at line 243 of file GraphElement.hpp.

◆ addTo() [1/2]

void addTo ( GraphType &  graph)

Method that builds the graph.

The loop over the elements is located right in this method.

Definition at line 252 of file GraphElement.hpp.

◆ addTo() [2/2]

void addTo ( std::shared_ptr< GraphType >  graph)
inline

Method that performs the assembly.

The loop over the elements is located right in this method.

Specialized for the case where the matrix is passed as a shared_ptr

Definition at line 152 of file GraphElement.hpp.

Field Documentation

◆ M_mesh

std::shared_ptr<MeshType> M_mesh
private

Definition at line 171 of file GraphElement.hpp.

◆ M_quadrature

QuadratureRule M_quadrature
private

Definition at line 174 of file GraphElement.hpp.

◆ M_testSpace

std::shared_ptr<TestSpaceType> M_testSpace
private

Definition at line 177 of file GraphElement.hpp.

◆ M_solutionSpace

std::shared_ptr<SolutionSpaceType> M_solutionSpace
private

Definition at line 178 of file GraphElement.hpp.

◆ M_ompParams

OpenMPParameters M_ompParams
private

Definition at line 181 of file GraphElement.hpp.

◆ M_offsetUp

UInt M_offsetUp
private

Definition at line 184 of file GraphElement.hpp.

◆ M_offsetLeft

UInt M_offsetLeft
private

Definition at line 185 of file GraphElement.hpp.


The documentation for this class was generated from the following file: