MGIS 3.1.0
Loading...
Searching...
No Matches
BasicLinearQuadratureSpace.ixx File Reference

Implementation of the mgis::function::BasicLinearQuadratureSpace structure and of the functions associated with this space. More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<size_type N>
constexpr size_type mgis::function::getSpaceSize (const BasicLinearQuadratureSpace< N > &) MGIS_NOEXCEPT
 returns the size of the space, i.e. the number of quadrature points it contains
template<size_type N>
constexpr size_type mgis::function::getNumberOfCells (const BasicLinearQuadratureSpace< N > &) MGIS_NOEXCEPT
 returns the number of cells of the space
template<size_type N>
constexpr size_type mgis::function::getNumberOfQuadraturePoints (const BasicLinearQuadratureSpace< N > &, const size_type) MGIS_NOEXCEPT
 returns the number of quadrature points of a given cell, which is always N
template<size_type N>
constexpr size_type mgis::function::getQuadraturePointOffset (const BasicLinearQuadratureSpace< N > &, const size_type, const size_type) MGIS_NOEXCEPT
 returns the offset in the space of a given quadrature point
template<size_type N>
constexpr bool mgis::function::areEquivalent (const BasicLinearQuadratureSpace< N > &, const BasicLinearQuadratureSpace< N > &) MGIS_NOEXCEPT
 checks if two spaces are equivalent, i.e. if they have the same number of quadrature points

Detailed Description

Implementation of the mgis::function::BasicLinearQuadratureSpace structure and of the functions associated with this space.

Author
Thomas Helfer
Date
01/05/2025

Function Documentation

◆ areEquivalent()

template<size_type N>
bool mgis::function::areEquivalent ( const BasicLinearQuadratureSpace< N > & s,
const BasicLinearQuadratureSpace< N > & s2 )
nodiscardconstexpr

checks if two spaces are equivalent, i.e. if they have the same number of quadrature points

Template Parameters
Nnumber of integration points per cell
Parameters
[in]sfirst space
[in]s2second space
Returns
true if the two spaces have the same size

◆ getNumberOfCells()

template<size_type N>
size_type mgis::function::getNumberOfCells ( const BasicLinearQuadratureSpace< N > & s)
constexpr

returns the number of cells of the space

forwards the call to the getNumberOfCells member function

Template Parameters
Nnumber of integration points per cell
Parameters
[in]sspace
Returns
the number of cells of the space

◆ getNumberOfQuadraturePoints()

template<size_type N>
size_type mgis::function::getNumberOfQuadraturePoints ( const BasicLinearQuadratureSpace< N > & s,
const size_type e )
constexpr

returns the number of quadrature points of a given cell, which is always N

forwards the call to the getNumberOfQuadraturePoints member function

Template Parameters
Nnumber of integration points per cell
Parameters
[in]sspace
[in]ecell index
Returns
the number of quadrature points of the cell of index e

◆ getQuadraturePointOffset()

template<size_type N>
size_type mgis::function::getQuadraturePointOffset ( const BasicLinearQuadratureSpace< N > & s,
const size_type e,
const size_type i )
constexpr

returns the offset in the space of a given quadrature point

forwards the call to the getQuadraturePointOffset member function

Template Parameters
Nnumber of integration points per cell
Parameters
[in]sspace
[in]ecell index
[in]iquadrature point index of the cell of index e
Returns
the offset e * N + i of the quadrature point

◆ getSpaceSize()

template<size_type N>
size_type mgis::function::getSpaceSize ( const BasicLinearQuadratureSpace< N > & s)
constexpr

returns the size of the space, i.e. the number of quadrature points it contains

forwards the call to the size member function

Template Parameters
Nnumber of integration points per cell
Parameters
[in]sspace
Returns
the number of elements of the space