26#ifndef DUMUX_EFF_TO_ABS_LAW_PARAMS_HH
27#define DUMUX_EFF_TO_ABS_LAW_PARAMS_HH
29#include <dune/common/float_cmp.hh>
39template <
class EffLawParamsT>
42 using EffLawParams = EffLawParamsT;
44 using Scalar =
typename EffLawParams::Scalar;
53 template<
class OtherParams>
56 return Dune::FloatCmp::eq(swr_, otherParams.swr(), 1e-6*swr_)
57 && Dune::FloatCmp::eq(snr_, otherParams.snr(), 1e-6*snr_)
58 && EffLawParamsT::operator==(otherParams);
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
A default implementation of the parameters for the adapter class to convert material laws from effect...
Definition: 2p/efftoabslawparams.hh:41
void setSnr(Scalar v)
Set the residual non-wetting saturation.
Definition: 2p/efftoabslawparams.hh:82
Scalar snr() const
Return the residual non-wetting saturation.
Definition: 2p/efftoabslawparams.hh:76
bool operator==(const OtherParams &otherParams) const
Equality comparison with another set of params.
Definition: 2p/efftoabslawparams.hh:54
EffToAbsLawParams()
Definition: 2p/efftoabslawparams.hh:46
void setSwr(Scalar v)
Set the residual wetting saturation.
Definition: 2p/efftoabslawparams.hh:70
Scalar swr() const
Return the residual wetting saturation.
Definition: 2p/efftoabslawparams.hh:64
typename EffLawParams::Scalar Scalar
Definition: 2p/efftoabslawparams.hh:44