Dune Core Modules (2.8.0)

Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< LocalFiniteElement, Geometry > Class Template Reference

Factory for ScalarLocalToGlobalFiniteElementAdaptor objects. More...

#include <dune/localfunctions/common/localtoglobaladaptors.hh>

Public Member Functions

 ScalarLocalToGlobalFiniteElementAdaptorFactory (const LocalFiniteElement &localFE_)
 construct a ScalarLocalToGlobalFiniteElementAdaptorFactory More...
 
const FiniteElement make (const Geometry &geometry)
 construct ScalarLocalToGlobalFiniteElementAdaptor More...
 
Finite element creation methods

Each finite element factory implementation must provide at least one of these methods. The signatures may be extended by additional parameters, but the parameters that are specified here should be given first and in the order specified here.

The return value of these functions is suitable for binding to a const reference – it will either be an rvalue (in which case binding to a const reference will create a copy whose lifetime is the same as the reference itself), or it will be an lvalue (in which case the factory must guarantee that it will be valid until the factory is destroyed or something else happens that explicitly invalidates all created finite elements).

In any case, since global-valued finite element objects are copy-constructible, it is also possible to use the returned value to initialize a finite element object instead of a const reference.

const FiniteElement make (const Geometry &, const VertexOrder &,...)
 create a finite element from a geometry and a vertex ordering
 
const FiniteElement make (const Geometry &,...)
 create a finite element from a geometry
 
const FiniteElement make (const VertexOrder &,...)
 create a finite element from a vertex ordering
 
const FiniteElement make (const GeometryType &,...)
 create a finite element from a geometry type More...
 
const FiniteElement make (...)
 create a finite element
 

Detailed Description

template<class LocalFiniteElement, class Geometry>
class Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< LocalFiniteElement, Geometry >

Factory for ScalarLocalToGlobalFiniteElementAdaptor objects.

Constructs ScalarLocalToGlobalFiniteElementAdaptor objects given a local finite element object and a geometry. This class is restricted to one base variant of the local finite element.

Template Parameters
LocalFiniteElementType of the local finite element to adapt.
GeometryType of the local-to-global transformation.

Constructor & Destructor Documentation

◆ ScalarLocalToGlobalFiniteElementAdaptorFactory()

template<class LocalFiniteElement , class Geometry >
Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< LocalFiniteElement, Geometry >::ScalarLocalToGlobalFiniteElementAdaptorFactory ( const LocalFiniteElement &  localFE_)
inline

construct a ScalarLocalToGlobalFiniteElementAdaptorFactory

Parameters
localFE_The local finite element object to adapt.
Note
This class stores the reference to the local finite element object passed here. Any use of this class after this reference has become invalid results in undefined behaviour. The exception is that the destructor of this class may still be called.

Member Function Documentation

◆ make() [1/2]

template<class LocalFiniteElement , class Geometry >
const FiniteElement Dune::ScalarLocalToGlobalFiniteElementAdaptorFactory< LocalFiniteElement, Geometry >::make ( const Geometry geometry)
inline

construct ScalarLocalToGlobalFiniteElementAdaptor

Parameters
geometryThe geometry object to use for adaption.
Note
The returned object stores the reference to the geometry passed here as well as references to internal data of this factory. Any use of the returned value after the geometry reference or the factory object was become invalid results in undefined behaviour. The exception is that the destructor of the returned value may still be called.

◆ make() [2/2]

template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make ( const GeometryType ,
  ... 
)
inherited

create a finite element from a geometry type

Note
This signature should only be used when only the geometry type but not the full geometry or vertex ordering are needed.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)