20#ifndef SCALED_SATFUNC_CHECKPOINT_HPP_INCLUDED
21#define SCALED_SATFUNC_CHECKPOINT_HPP_INCLUDED
23#include <opm/simulators/utils/satfunc/SatfuncCheckPointInterface.hpp>
24#include <opm/simulators/utils/satfunc/UnscaledSatfuncCheckPoint.hpp>
32 class EclEpsGridProperties;
34 template <
typename Scalar>
38namespace Opm::Satfunc::PhaseChecks {
44 template <
typename Scalar>
66 const EclipseState* eclipseState,
67 const EclEpsGridProperties* epsGridProps,
69 : unscaled_ { unscaled }
70 , eclipseState_ { eclipseState }
71 , epsGridProps_ { epsGridProps }
72 , localToGlobal_ { localToGlobal }
81 std::optional<std::size_t>
pointID(
const int cellIdx)
const override
83 return { this->localToGlobal_(cellIdx) };
101 const EclipseState* eclipseState_{
nullptr};
104 const EclEpsGridProperties* epsGridProps_{
nullptr};
std::function< std::size_t(const int)> LocalToGlobal
Callback for translating active cell index to globally unique point ID.
Definition ScaledSatfuncCheckPoint.hpp:50
ScaledSatfuncCheckPoint(const UnscaledSatfuncCheckPoint< Scalar > &unscaled, const EclipseState *eclipseState, const EclEpsGridProperties *epsGridProps, const LocalToGlobal &localToGlobal)
Constructor.
Definition ScaledSatfuncCheckPoint.hpp:65
std::optional< std::size_t > pointID(const int cellIdx) const override
Compute global unique, i.e., across all MPI ranks, ID of this check for a particular cell index.
Definition ScaledSatfuncCheckPoint.hpp:81
void populateCheckPoint(const int cellIdx, EclEpsScalingPointsInfo< Scalar > &endPoints) const override
Populate check point values for a particular cell.
Definition ScaledSatfuncCheckPoint.cpp:35
Callbacks for defining the consistency check point of a single region.
Definition UnscaledSatfuncCheckPoint.hpp:47
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Definition SatfuncCheckPointInterface.hpp:28
Callback protocol for single saturation function consistency check point.
Definition SatfuncCheckPointInterface.hpp:40