[Dune] Extract host entity from GeometryGrid entity

Agnese, Marco m.agnese13 at imperial.ac.uk
Tue Dec 6 16:25:51 CET 2016


Hi,

I need to obtain the host entity of an entity contained in a GeometryGrid.

I was trying to do something like this


for( const auto& entity : elements( geogrid.leafGridView() ) )

{
  const auto hostEntity = entity.hostEntity() ;
  // ...
}

but I have the following error

error: 'const class Dune::Entity<0, 2, const Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u> >, Dune::GeoGrid::Entity>' has no member named 'hostEntity'

But in dune/grid/geometrygrid/entity.hh the hostEntity() method is defined.

Any idea of what am I doing wrong?

Cheers,
Marco



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20161206/4c4b19cb/attachment.htm>


More information about the Dune mailing list