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>
35 struct EclEpsScalingPointsInfo;
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};
113 #endif // SCALED_SATFUNC_CHECKPOINT_HPP_INCLUDED 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
Callback protocol for single saturation function consistency check point.
Definition: SatfuncCheckPointInterface.hpp:39
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
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Definition: SatfuncCheckPointInterface.hpp:28
Callbacks for defining the scaled saturation function consistency check point of a single active grid...
Definition: ScaledSatfuncCheckPoint.hpp:45
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: SatfuncConsistencyCheckManager.hpp:47