diff --git a/opm/models/discretization/common/fvbasenewtonmethod.hh b/opm/models/discretization/common/fvbasenewtonmethod.hh index 6c3ab0ee16..b537a53b81 100644 --- a/opm/models/discretization/common/fvbasenewtonmethod.hh +++ b/opm/models/discretization/common/fvbasenewtonmethod.hh @@ -28,8 +28,7 @@ #ifndef EWOMS_FV_BASE_NEWTON_METHOD_HH #define EWOMS_FV_BASE_NEWTON_METHOD_HH -#include "fvbasenewtonconvergencewriter.hh" - +#include #include #include @@ -40,6 +39,7 @@ class FvBaseNewtonMethod; template class FvBaseNewtonConvergenceWriter; + } // namespace Opm namespace Opm::Properties { @@ -94,11 +94,10 @@ class FvBaseNewtonMethod : public NewtonMethod using PrimaryVariables = GetPropType; using EqVector = GetPropType; - public: explicit FvBaseNewtonMethod(Simulator& simulator) : ParentType(simulator) - { } + {} protected: friend class NewtonMethod; @@ -130,10 +129,11 @@ protected: // make sure that the intensive quantities get recalculated at the next // linearization if (model_().storeIntensiveQuantities()) { - for (unsigned dofIdx = 0; dofIdx < model_().numGridDof(); ++dofIdx) + for (unsigned dofIdx = 0; dofIdx < model_().numGridDof(); ++dofIdx) { model_().setIntensiveQuantitiesCacheEntryValidity(dofIdx, /*timeIdx=*/0, /*valid=*/false); + } } } @@ -166,6 +166,7 @@ private: const Implementation& asImp_() const { return *static_cast(this); } }; + } // namespace Opm #endif