13#ifndef DUMUX_COMMON_DEPRECATED_HH
14#define DUMUX_COMMON_DEPRECATED_HH
18#include <dune/common/ftraits.hh>
19#include <dune/common/exceptions.hh>
20#include <dune/common/std/type_traits.hh>
35#pragma clang diagnostic push
36#pragma clang diagnostic ignored "-Wdeprecated-declarations"
40#pragma clang diagnostic pop
43template<
class CO2Impl>
44 struct BrineCO2Helper{
45 template<
class CO2Arg>
46 using TabulatedDensityDetector =
decltype(std::declval<CO2Arg>().tabulatedDensity);
47 static constexpr bool rawCO2Table = Dune::Std::is_detected<TabulatedDensityDetector,
51 [[deprecated(
"Passing just CO2Tables to define a BrineCO2 fluidsystem/binarycoefficient is deprecated. Use Components::CO2<Scalar, CO2Tables> as template parameter instead.")]]
52 static constexpr void DefiningBrineCO2WithCO2Table() {}
54 static constexpr bool isRawTable()
56 if constexpr (rawCO2Table)
57 DefiningBrineCO2WithCO2Table<CO2Impl>();
A helper to deduce a vector with the same size as numbers of equations.