20#ifndef OPM_RST_CONV_HEADER_INCLUDED
21#define OPM_RST_CONV_HEADER_INCLUDED
39 RSTConv(
const std::vector<int>& globalCell,
41 : globalCell_(globalCell)
49 void init(
const std::size_t numCells,
50 const RSTConfig& rst_config,
51 const std::array<int,6>& compIdx);
54 template<
class Res
idualVector>
55 void update(
const ResidualVector& resid);
58 const std::vector<std::vector<int>>&
getData()
const
67 template<
class Res
idualVector>
68 void gatherAndAccumulate(
const std::vector<int>& lIdx,
69 const ResidualVector& resid,
int comp);
71 const std::vector<int>& globalCell_;
73 std::vector<std::vector<int>> cnv_X_;
74 std::array<int,6> compIdx_;
Class computing RPTRST CONV output.
Definition: RSTConv.hpp:34
RSTConv(const std::vector< int > &globalCell, Parallel::Communication comm)
Constructor.
Definition: RSTConv.hpp:39
const std::vector< std::vector< int > > & getData() const
Obtain a const-ref to the accumulated data.
Definition: RSTConv.hpp:58
void update(const ResidualVector &resid)
Adds the CONV output for given residual vector.
void init(const std::size_t numCells, const RSTConfig &rst_config, const std::array< int, 6 > &compIdx)
Init state at beginning of step.
Dune::Communication< MPIComm > Communication
Definition: ParallelCommunication.hpp:30
Definition: BlackoilPhases.hpp:27