EclHeatcrLaw(Params): some modernization
- typedef -> using - fix includes
This commit is contained in:
parent
85f5d23966
commit
2a1cb8d9c9
@ -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
|
||||
|
@ -39,7 +39,7 @@ template <class ScalarT>
|
||||
class EclHeatcrLawParams : public EnsureFinalized
|
||||
{
|
||||
public:
|
||||
typedef ScalarT Scalar;
|
||||
using Scalar = ScalarT;
|
||||
|
||||
EclHeatcrLawParams(const EclHeatcrLawParams&) = default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user