Dune Core Modules (2.6.0)
Dune::BasisInterfaceSwitch< Basis, Dummy > Struct Template Reference
Switch for uniform treatment of local and global basis classes. More...
#include <dune/localfunctions/common/interfaceswitch.hh>
Static Public Member Functions | |
template<typename Geometry > | |
static void | gradient (const Basis &basis, const Geometry &geometry, const DomainLocal &xl, std::vector< FieldMatrix< RangeField, 1, Geometry::coorddimension > > &grad) |
Compute global gradient for scalar valued bases. More... | |
Detailed Description
template<class Basis, class Dummy = void>
struct Dune::BasisInterfaceSwitch< Basis, Dummy >
struct Dune::BasisInterfaceSwitch< Basis, Dummy >
Switch for uniform treatment of local and global basis classes.
- Template Parameters
-
Basis Type of the basis to handle. Dummy Dummy parameter for enable_if. This must be left at the default value of void
.
We don't provide any uniform access to the types and constants pertaining to the global domain. Providing this would require the Geometry as template parameter as well, and the user code can build them itself if it needs them with the help of the geometry. The omitted types are DomainGlobal
and Jacobian
, the omitted constant is dimDomainGlobal
.
- Note
- The local interface is assumed if the constant Basis::Traits::dimDomain exists and has a value greater than 0.
Member Function Documentation
◆ gradient()
template<class Basis , class Dummy = void>
template<typename Geometry >
|
inlinestatic |
Compute global gradient for scalar valued bases.
- Parameters
-
basis The basis to get the derivatives from. geometry The geometry to use to transform the derivatives (for a local basis, unused in the case of a global basis). xl The local coordinates where to evaluate the gradient. grad The result (will be resized to the appropriate number of entries.
- Note
- This make sense only for a scalar valued basis.
The documentation for this struct was generated from the following file:
- dune/localfunctions/common/interfaceswitch.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 24, 23:30, 2024)