<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<p>I need to obtain the host entity of an entity contained in a GeometryGrid.</p>
<p>I was trying to do something like this</p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">for( </span><span style="font-size: 12pt;">const auto& entity </span><span style="font-size: 12pt;">: </span><span style="font-size: 12pt;">elements( </span><span style="font-size: 12pt;">geogrid.leafGridView() </span><span style="font-size: 12pt;">) </span><span style="font-size: 12pt;">)</span><br>
</p>
<p></p>
<div>{ </div>
<div> const auto hostEntity = entity.hostEntity() ;</div>
<div> // ...</div>
<div>}</div>
<div><br>
</div>
<div>but I have the following error</div>
<div><br>
</div>
<div>
<div>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’</div>
<div> </div>
<div>But in dune/grid/geometrygrid/entity.hh the hostEntity() method is defined.</div>
<div><br>
</div>
<div>Any idea of what am I doing wrong?</div>
<div><br>
</div>
<div>Cheers,<br>
Marco</div>
<div><br>
</div>
<br>
</div>
<br>
<p></p>
</div>
</body>
</html>