20#ifndef OPM_FINDOVERLAPROWSANDCOLUMNS_HEADER_INCLUDED
21#define OPM_FINDOVERLAPROWSANDCOLUMNS_HEADER_INCLUDED
23#include <opm/grid/common/WellConnections.hpp>
24#include <opm/grid/common/CartesianIndexMapper.hpp>
31template<
class Gr
id>
class CartesianIndexMapper;
48 template<
class Gr
id,
class CartMapper,
class W>
51 if ( grid.comm().size() > 1 || numJacobiBlocks > 1)
53 const int numCells =
cartMapper.compressedSize();
61 for(
int i=0; i < numCells; ++i )
69 for (
auto perf = well.begin();
perf != well.end(); ++
perf)
91 template<
class Gr
id,
class Mapper>
92 void findOverlapAndInterior(
const Grid& grid,
const Mapper&
mapper, std::vector<int>&
overlapRows,
96 if ( grid.comm().size() > 1)
99 const auto& gridView = grid.leafGridView();
105 if (
elem.partitionType() != Dune::InteriorEntity)
121 template <
class Gr
id>
122 std::size_t numMatrixRowsToUseInSolver(
const Grid& grid,
bool ownerFirst)
126 return grid.leafGridView().size(0);
127 const auto& gridView = grid.leafGridView();
130 const auto&
range =
elements(gridView, Dune::Partitions::interior);
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