[Dune] [#658] Cannot get GeometryGrid with DiscreteCoordFunction to work
Dune
dune at dune-project.org
Wed Nov 11 16:39:15 CET 2009
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#658 - Cannot get GeometryGrid with DiscreteCoordFunction to work
User who did this - Martin Nolte (nolte)
----------
First of all, you're probably right that the documentation should be improved by 2 simple examples and I'll try to come up with them as soon as possible...
As to your problem: You're completely right, the subIndex method is what you intend, yet it cannot be called for arbitrary entities. There are 2 workarounds that I know of:
a) Use AlbertaGrid as host grid (it supports the method subIndex for all codimension entities -- if I didn't forget to commit this).
b) Try using YaspGrid or UGGrid (they only provide elements and vertices) and specialize the method for the 2 types of entities that might appear.
Actually this problem is what I meant when I asked for the extended subIndex method on the December 2008 developer meeting in Heidelberg.
You can also take a look at the CachedCoordFunction (which wraps an analytical function into a discrete one by caching the corner values).
I hope this helps you understand a bit better. As I said, demo implementations will follow as soon as possible.
Yours,
Martin
I hope this helps you understand the possibilities a bit better.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=658#comment1322
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list