[Dune] Re: label/id mismatching when visualizing with vtkwriter and paraview (with that of grid files)

Robert Kloefkorn robertk at mathematik.uni-freiburg.de
Fri Sep 8 19:20:27 CEST 2006


Hi Sreejith,

> Why is that a grid file when visualising with vtkwriter and paraview
> gives different labels (for eg. ID's of vertices ) than the original
> ids from the grid file.

as Oli mentioned, the reason that the numbering in the macro grid file
is differnent to that, given by the LeafIndexSet (as in your example)
is simply, that the creation of this vertex index is done by iterating
over the grids elements. Clearly one cannnot expect to get the same
numbering. If you want to get the same numbers, you should use the
localIdSet which in case of ALU2dGrid then should give you the same
numbers, although it's not an index set.

If you want the same numbering in the macro file and in the
LeafIndexSet, you have to rewrite the macro file such that every vertex
gets the number it has in the LeafIndex afterwards. But this is a lot of
work for that little of outcome.

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