<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Marco,<br>
<br>
to access the underlying host grid entity use the HostGridAccess
structure:
<blockquote>#include <dune/grid/utility/hostgridaccess.hh><br>
<br>
template<class HostGrid, int codim><br>
void illustrate(const
GeometryGrid<HostGrid>::Codim<codim>::Entity
&entity)<br>
{<br>
typedef GeometryGrid<HostGrid> Grid;<br>
typedef
HostGridAccess<Grid>::Codim<codim>::HostEntity
HostEntity;<br>
const HostEntity &hostEntity =
HostGridAccess<Grid>::hostEntity(entity);<br>
}<br>
</blockquote>
<blockquote>
</blockquote>
If you have configured your DUNE installation with the<br>
<blockquote>--enable-experimental-grid-extensions<br>
</blockquote>
option, you can also write:<br>
<blockquote>entity.impl().hostEntity();<br>
</blockquote>
(In experimental mode, the impl()-method is present on all DUNE
interface facade classes, see e. g.
<dune/grid/common/entity.hh>; the method will give you
access to the implementation object wrapped inside a facade class)<br>
<br>
Cheers,<br>
Christoph<br>
<br>
<br>
On 12/20/2013 10:14 AM, Marco Cisternino wrote:<br>
</div>
<blockquote
cite="mid:641396312.7527608.1387530878259.JavaMail.root@optimad.it"
type="cite">
<pre wrap="">I wonder if I can ask a geometry grid entity for its relative entity on the host grid. If yes, how?
Thanks.
Marco
--
-----------------------------------------------
Marco Cisternino, PhD
OPTIMAD Engineering s.r.l.
Via Giacinto Collegno 18
10143 Torino - Italy
<a class="moz-txt-link-abbreviated" href="http://www.optimad.it">www.optimad.it</a>
<a class="moz-txt-link-abbreviated" href="mailto:marco.cisternino@optimad.it">marco.cisternino@optimad.it</a>
+39 011 19719782
-----------------------------------------------
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title></title>
<font color="#666666"><small>Christoph Gersbacher</small><small>
<a
href="mailto:christoph.gersbacher@mathematik.uni-freiburg.de"><font
color="#3333ff"><christoph.gersbacher@mathematik.uni-freiburg.de></font></a></small><br>
</font>
<div class="moz-signature">
<div class="moz-signature"><font color="#666666"><small>Abteilung
für
Angewandte Mathematik
</small><br>
</font><font color="#666666"><small>Albert-Ludwigs-Universität
Freiburg
</small><br>
</font><font color="#666666"><small>Hermann-Herder-Str. 10
</small><br>
</font><font color="#666666"><small>D-79104 Freiburg im
Breisgau
</small><br>
</font><font color="#666666"><small>Tel.: +49 (0)761 / 203
5645
</small><br>
</font><font color="#666666"><small>Fax: +49 (0)761 / 203 5632</small></font>
</div>
</div>
</div>
</body>
</html>