[Dune] A question about the relationship between iterators and indices in dune-grid
HelmerAndre.Friis at iris.no
HelmerAndre.Friis at iris.no
Wed Sep 23 10:48:11 CEST 2009
Dear Dune-community,
please consider the following questions regarding the relationship
between iterators and indices in dune-grid.
A) I state the question in 2D (but it obviously applies similarly in 3D).
Consider an entity with a given codim thus corresponding to either a
vertex, edge or element. Is it so that the associated iterator.begin()
always corresponds to (or in other words: points to) the entity with
index=0, and moreover, will the operation ++iterator always increase the
corresponding entity's index with 1.
B) If the answer in A) turns at to be negative, i.e. that there is no such
obvious relationship between indices and iterators in the dune-grid: how
do you relate a given index to the corresponding entity, or in other
words, if you know the index of an entity, how do you obtain a pointer to
this particular entity?
Thanks in advance,
Helmer André Friis
"This e-mail with attached documents is only for the addressee indicated
above. The e-mail and documents may contain confidential information. If
you are not the correct addressee or are responsible for transfer of this
e-mail with attached documents to the correct addressee, any copying or
further transfer of information contained herein is expressly forbidden.
If you have received this e-mail by mistake, you are kindly requested to
immediately inform me thereof by e-mail and delete the e-mail and the
received documents."
http://www.iris.no
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20090923/f5fb0601/attachment.htm>
More information about the Dune
mailing list