24#ifndef DUMUX_COMMON_OPTIONAL_SCALAR_HH
25#define DUMUX_COMMON_OPTIONAL_SCALAR_HH
40 static_assert(std::numeric_limits<T>::has_quiet_NaN,
"T has to be able to represent a quiet NaN!");
51 explicit operator bool()
const
54 return !isnan(value_);
57 T value_ = std::numeric_limits<T>::quiet_NaN();
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
A type for an optional scalar (contains either a valid number or NaN)
Definition: optionalscalar.hh:39
OptionalScalar(T value)
Definition: optionalscalar.hh:44
T value() const
Definition: optionalscalar.hh:48