20#ifndef OPM_RST_CONV_HEADER_INCLUDED
21#define OPM_RST_CONV_HEADER_INCLUDED
27#include <opm/simulators/utils/ParallelCommunication.hpp>
31namespace data {
class Solution; }
38 using LocalToGlobalCellFunc = std::function<
int(
const int)>;
43 Parallel::Communication comm)
44 : globalCell_(std::
move(globalCell))
52 void init(
const std::size_t numCells,
54 const std::array<int,6>&
compIdx);
60 template<
class Res
idualVector>
64 const std::vector<std::vector<int>>&
getData()
const
73 template<
class Res
idualVector>
74 void gatherAndAccumulate(
const std::vector<int>&
lIdx,
77 LocalToGlobalCellFunc globalCell_;
78 Parallel::Communication comm_;
79 std::vector<std::vector<int>> cnv_X_{};
80 std::array<int,6> compIdx_{};
Class computing RPTRST CONV output.
Definition RSTConv.hpp:36
void outputRestart(data::Solution &sol)
Inserts the CONV output into the restart output container.
Definition RSTConv.cpp:59
const std::vector< std::vector< int > > & getData() const
Obtain a const-ref to the accumulated data.
Definition RSTConv.hpp:64
void update(const ResidualVector &resid)
Adds the CONV output for given residual vector.
Definition RSTConv.cpp:76
RSTConv(LocalToGlobalCellFunc globalCell, Parallel::Communication comm)
Constructor.
Definition RSTConv.hpp:42
void init(const std::size_t numCells, const RSTConfig &rst_config, const std::array< int, 6 > &compIdx)
Init state at beginning of step.
Definition RSTConv.cpp:37
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242