[Dune] Question about geomTypes method.

Robert Kloefkorn robertk at mathematik.uni-freiburg.de
Mon Nov 20 10:38:19 CET 2006


Hello Dune,

I have the following question:

How can one get information from the grid about all geometry types that
could possibly occur in the grid?

The method geomTypes on the IndexSet returns only all geomTypes that are
right now contained in the grid, for example when using UGGrid with a
cube-only macro grid, one get the a vector geomTypes with lenght 1 and
GeometryType (cube,2) in a 2d cube grid.

After refinement there exist two different geometry types, cube and
simplex. For initialization issues (BaseFunctions and so on) it is
necessary to have a method (on the index set or grid) which just tells
which geometry could occur during computation (in a 2d cube grid that
would be cube and simplex).

I suggest the following change:

a) add a method allGeomType on IndexSet that returns this information

b) add this method on Grid instead of IndexSet

c) change semantic of method geomTypes to return all geometry types
provided by grid, information about presence of geometry still
accessable via size method.

I would prefer a) or b). But also c) is ok with me.

What do Stuttgart and Berlin think?

Regards,

R

-- 

  Robert Klöfkorn           <robertk at mathematik.uni-freiburg.de>

  Mathematisches Institut              Tel: +49 (0) 761 203 5631
  Abt. für Angewandte Mathematik       Fax: +49 (0) 761 203 5632
  Universität Freiburg
  Hermann-Herder-Str. 10
  79104 Freiburg

  http://www.mathematik.uni-freiburg.de/IAM/homepages/robertk




More information about the Dune mailing list