EclHeatcrLaw(Params): some modernization

- typedef -> using
- fix includes
This commit is contained in:
Arne Morten Kvarving 2022-08-03 08:26:43 +02:00
parent 85f5d23966
commit 2a1cb8d9c9
2 changed files with 5 additions and 5 deletions

View File

@ -29,10 +29,9 @@
#include "EclHeatcrLawParams.hpp"
#include <opm/material/densead/Math.hpp>
namespace Opm
{
/*!
* \ingroup material
*
@ -46,8 +45,8 @@ template <class ScalarT,
class EclHeatcrLaw
{
public:
typedef ParamsT Params;
typedef typename Params::Scalar Scalar;
using Params = ParamsT;
using Scalar = typename Params::Scalar;
/*!
* \brief Given a fluid state, compute the volumetric internal energy of the rock [W/m^3].
@ -64,6 +63,7 @@ public:
return deltaT*(C0 + deltaT*C1 / 2.0);
}
};
} // namespace Opm
#endif

View File

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