25#ifndef DUMUX_COMPONENT_TRAITS_HH
26#define DUMUX_COMPONENT_TRAITS_HH
37template<
class Component>
40 using Scalar =
typename Component::Scalar;
43 static constexpr bool hasSolidState = std::is_base_of<Components::Solid<Scalar, Component>, Component>::value;
46 static constexpr bool hasLiquidState = std::is_base_of<Components::Liquid<Scalar, Component>, Component>::value;
49 static constexpr bool hasGasState = std::is_base_of<Components::Gas<Scalar, Component>, Component>::value;
52 static constexpr bool isIon = std::is_base_of<Components::Ion<Scalar, Component>, Component>::value;
Interface for components that have a gas state.
Interface for components that are ions.
Interface for components that have a liquid state.
Interface for components that have a solid state.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Definition: componenttraits.hh:39
static constexpr bool hasLiquidState
if the component implements a liquid state
Definition: componenttraits.hh:46
typename Component::Scalar Scalar
Definition: componenttraits.hh:40
static constexpr bool isIon
if the component implements an ion
Definition: componenttraits.hh:52
static constexpr bool hasSolidState
if the component implements a solid state
Definition: componenttraits.hh:43
static constexpr bool hasGasState
if the component implements a gaseous state
Definition: componenttraits.hh:49