[Dune-devel] StructuredGridFactory<YaspGrid<dim> >

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Wed Oct 30 14:22:07 CET 2013


Hi Dune,
since the constructor of YaspGrid was deprecated the functions
createCubeGrid and createSimplexGrid in
StructuredGridFactory<YaspGrid<dim> > trigger a deprecation warning.

The problem is that the method signature is the same for YaspGrid and
other grids like SGrid. This makes the functions usefull despite the
chosen grid:

createCubeGrid(const FieldVector<ctype,dimworld>& lowerLeft,
               const FieldVector<ctype,dimworld>& upperRight,
               const array<unsigned int,dim>& elements)

What would be the proper fix?
a) Change the method signature to match the one from YaspGrid. This
would imply to drop the lowerLeft because it is only used for
compatiliby to SGrid.
b) Stick to the old method and convert the arguments internally

Keep in mind that SGrid should be dropped in near future but not until
an integrated grid has all its capabilities.

Bye
Christoph

-- 
Une science n'était vraiment développée que quand elle
pouvait utiliser les mathématiques.    (Paul Lafargue)
*********************************************
CMWR 2014: 10th - 13th June 2014 in Stuttgart
         Please visit www.cmwr14.de
*********************************************




More information about the Dune-devel mailing list