20#include "dune/common/fvector.hh"
21#include "dune/geometry/type.hh"
29 namespace CellLocatorDetail
31 template <
class Gr
idView,
int dimw>
53 template <
class Gr
idView,
int dimw=Gr
idView::Gr
id::dimension>
57 using Grid =
typename GridView::Grid;
60 static int const dimension = GridView::Grid::dimension;
62 using ctype =
typename GridView::ctype;
64 using Cell =
typename GridView::template Codim<0>::Entity;
89 std::vector<Cell>
cells()
const;
103 std::unique_ptr<CellLocatorDetail::SpatialIndex<GridView,dimension_world>> spatialIndex;
106 void init(GridView
const& gridView);
static int const dimension
std::vector< Cell > cells() const
Returns a sequence of all cells.
static int const dimension_world
CellLocator(GridView const &gridView)
Constructs a locator based on the grids view.
std::pair< Cell, double > closestCell(Position const &pos) const
Returns a pair consisting of the closest cell to pos and the distance to this cell.
typename GridView::template Codim< 0 >::Entity Cell
ctype diameter() const
The diagonal length of the grid's cartesian bounding box.
typename GridView::ctype ctype