[Dune] How to obtain an EntityPointer from an Entity ?

Benedikt Oswald benedikt.oswald at psi.ch
Tue Jan 25 15:39:35 CET 2011


Dear Dune,

probably a silly question, but how do I create an EntityPointer from an Entity  ?


defining

typedef typename Grid::template Codim<Grid::dimension-3>::EntityPointer EntityPointerElement;


and then doing something like:

EntityPointerElement entityPointer(entity);

where entity is of type Entity, as in the Dune::CommDataHandleIF gather and scatter functions
won't work ?

Did I miss something obvious ?

For example using & to make a pointer won't work either.

Thanks and have a great day!

Benedikt



--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist, http://amas.web.psi.ch
Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12

"Passion is required for any great work, and for the revolution passion and audacity are required in big doses.",
 Ernesto 'Che' Guevara, Letter to his parents.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110125/015738ad/attachment.htm>


More information about the Dune mailing list