20 #ifndef UNSCALED_SATFUNC_CHECKPOINT_HPP_INCLUDED 21 #define UNSCALED_SATFUNC_CHECKPOINT_HPP_INCLUDED 23 #include <opm/simulators/utils/satfunc/SatfuncCheckPointInterface.hpp> 27 #include <unordered_set> 31 template <
typename Scalar>
32 struct EclEpsScalingPointsInfo;
36 struct RawTableEndPoints;
37 struct RawFunctionValues;
45 template <
typename Scalar>
46 class UnscaledSatfuncCheckPoint :
public SatfuncCheckPointInterface<Scalar>
56 const satfunc::RawTableEndPoints*
rtep{
nullptr};
61 const satfunc::RawFunctionValues*
rfunc{
nullptr};
75 const int regIdxOffset,
77 : unscaledEndPoints_ { unscaledEndPoints }
78 , regIdxOffset_ { regIdxOffset }
93 std::optional<std::size_t>
pointID(
const int cellIdx)
const override;
101 EclEpsScalingPointsInfo<Scalar>& endPoints)
const override;
107 UnscaledEndPoints unscaledEndPoints_;
114 const std::vector<int>* region_{
nullptr};
117 mutable std::unordered_set<int> seen_{};
122 #endif // UNSCALED_SATFUNC_CHECKPOINT_HPP_INCLUDED std::optional< std::size_t > pointID(const int cellIdx) const override
Compute locally unique, i.e., per MPI rank, ID of this check for a particular cell index...
Definition: UnscaledSatfuncCheckPoint.cpp:38
void populateCheckPoint(const int cellIdx, EclEpsScalingPointsInfo< Scalar > &endPoints) const override
Populate check point values for a particular cell.
Definition: UnscaledSatfuncCheckPoint.cpp:53
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Definition: UnscaledSatfuncCheckPoint.hpp:35
const satfunc::RawTableEndPoints * rtep
Raw table end-points.
Definition: UnscaledSatfuncCheckPoint.hpp:56
Collection of saturation function end-points and function values extracted from tabulated saturation ...
Definition: UnscaledSatfuncCheckPoint.hpp:51
const satfunc::RawFunctionValues * rfunc
Raw saturation function values.
Definition: UnscaledSatfuncCheckPoint.hpp:61
UnscaledSatfuncCheckPoint(const std::vector< int > *region, const int regIdxOffset, const UnscaledEndPoints &unscaledEndPoints)
Constructor.
Definition: UnscaledSatfuncCheckPoint.hpp:74