<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Thank you so much Christoph!<br>I'd need just another hint:<br>I built my geometry grid on ALU3D, and I cached the nodes of that grid in a persistentcontainer<Hostgrid,Value> as in cachedcoordfunction.hh. If loop on the geometry grid elements, asking geometries for codim 0 entity and intersections everything works fine, but if I ask geometry for codim 1 entity (faces) the compiler goes crazy! I rewrote the algorithm that uses those calls to faces geometries, but I can't understand why. I know it is a little bit generic, but I would like to understand if I can ask codim 1 geometry using something like cachedcoordfunction.hh. If you think it is possible, something's wrong in my code, otherwise I stop using faces in this framework.<br>Thanks again for all your support.<br><br>Marco<br><br><br><div><span name="x"></span>--<br>-----------------------------------------------<br>Marco Cisternino, PhD<br>OPTIMAD Engineering s.r.l.<br>Via Giacinto Collegno 18<br>10143 Torino - Italy<br>www.optimad.it<br>marco.cisternino@optimad.it<br>+39 011 19719782<br>-----------------------------------------------<span name="x"></span><br></div><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>Da: </b>"Christoph_Gersbacher" <gersbach@mathematik.uni-freiburg.de><br><b>A: </b>dune@dune-project.org, "Marco Cisternino" <marco.cisternino@optimad.it><br><b>Inviato: </b>Venerdì, 20 dicembre 2013 11:22:09<br><b>Oggetto: </b>Re: [Dune] geometry grid and host entity<br><br>
<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">
<pre>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" target="_blank">www.optimad.it</a>
<a class="moz-txt-link-abbreviated" href="mailto:marco.cisternino@optimad.it" target="_blank">marco.cisternino@optimad.it</a>
+39 011 19719782
-----------------------------------------------
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org" target="_blank">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune" target="_blank">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" target="_blank"><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>
</div><br></div></body></html>