mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adapt code w.r.t. the removal of the tags for Opm::Evaluation
This commit is contained in:
parent
17aed6c181
commit
90ff56503d
@ -244,8 +244,7 @@ namespace Opm
|
||||
const auto& pu = phaseUsage();
|
||||
const int np = numPhases();
|
||||
|
||||
enum PressureEvalTag {};
|
||||
typedef Opm::LocalAd::Evaluation<double, PressureEvalTag, /*size=*/1> LadEval;
|
||||
typedef Opm::LocalAd::Evaluation<double, /*size=*/1> LadEval;
|
||||
|
||||
LadEval pLad = 0.0;
|
||||
LadEval TLad = 0.0;
|
||||
@ -470,8 +469,7 @@ namespace Opm
|
||||
{
|
||||
const auto& pu = phaseUsage();
|
||||
|
||||
enum PressureEvalTag {};
|
||||
typedef Opm::LocalAd::Evaluation<double, PressureEvalTag, /*size=*/1> LadEval;
|
||||
typedef Opm::LocalAd::Evaluation<double, /*size=*/1> LadEval;
|
||||
|
||||
LadEval pLad = 0.0;
|
||||
LadEval TLad = 0.0;
|
||||
@ -605,8 +603,7 @@ namespace Opm
|
||||
{
|
||||
const auto& pu = phaseUsage();
|
||||
|
||||
enum PressureEvalTag {};
|
||||
typedef Opm::LocalAd::Evaluation<double, PressureEvalTag, /*size=*/1> LadEval;
|
||||
typedef Opm::LocalAd::Evaluation<double, /*size=*/1> LadEval;
|
||||
typedef Opm::MathToolbox<LadEval> Toolbox;
|
||||
|
||||
LadEval pLad = 0.0;
|
||||
|
@ -30,12 +30,6 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
// this class does not need to be implemented. its only purpose is to make compiler
|
||||
// messages for local-AD framework more explicit (because the class name of the
|
||||
// Evaluation will include a tag name so that it is clear which derivatives are handled).
|
||||
class SaturationDerivativesTag
|
||||
{};
|
||||
|
||||
/*!
|
||||
* \brief This is a fluid state which translates global arrays and translates them to a
|
||||
* subset of the fluid state API.
|
||||
@ -50,7 +44,7 @@ public:
|
||||
enum { numPhases = BlackoilPhases::MaxNumPhases };
|
||||
enum { numComponents = 3 };
|
||||
|
||||
typedef Opm::LocalAd::Evaluation<double, SaturationDerivativesTag, numPhases> Evaluation;
|
||||
typedef Opm::LocalAd::Evaluation<double, numPhases> Evaluation;
|
||||
typedef Evaluation Scalar;
|
||||
|
||||
ExplicitArraysSatDerivativesFluidState(const PhaseUsage& phaseUsage)
|
||||
|
Loading…
Reference in New Issue
Block a user