24 #ifndef AQUIFER_GRID_UTILS_HEADER_INCLUDED 25 #define AQUIFER_GRID_UTILS_HEADER_INCLUDED 27 #include <opm/grid/CpGrid.hpp> 40 bool operator()(
const T&)
const {
return false; }
50 bool operator()(
const T& elem)
const 52 const auto& aquiferCells = grid_.sortedNumAquiferCells();
53 if (aquiferCells.empty())
57 auto candidate = std::lower_bound(aquiferCells.begin(),
58 aquiferCells.end(), elem.index());
59 return candidate != aquiferCells.end() && *candidate == elem.index();
63 const Dune::CpGrid& grid_;
Definition: AquiferGridUtils.hpp:35
Definition: fvbaseprimaryvariables.hh:161
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45