EclThconrLaw(Params): some modernization

- typedef -> using
This commit is contained in:
Arne Morten Kvarving 2022-08-03 08:26:43 +02:00
parent 31c7641fac
commit 38864a4793
2 changed files with 5 additions and 4 deletions

View File

@ -40,12 +40,12 @@ namespace Opm
*/
template <class ScalarT,
class FluidSystem,
class ParamsT = EclThconrLawParams<ScalarT> >
class ParamsT = EclThconrLawParams<ScalarT>>
class EclThconrLaw
{
public:
typedef ParamsT Params;
typedef typename Params::Scalar Scalar;
using Params = ParamsT;
using Scalar = typename Params::Scalar;
/*!
* \brief Given a fluid state, return the total thermal conductivity [W/m^2 / (K/m)] of the porous
@ -67,6 +67,7 @@ public:
}
}
};
} // namespace Opm
#endif

View File

@ -39,7 +39,7 @@ template <class ScalarT>
class EclThconrLawParams : public EnsureFinalized
{
public:
typedef ScalarT Scalar;
using Scalar = ScalarT;
EclThconrLawParams(const EclThconrLawParams&) = default;