[Dune] [#974] StructureGrid<Grid<2,3>> in vertexordertest.cc

Dune flyspray at dune-project.org
Tue Nov 8 22:02:18 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Andreas Dedner (dedner) 

Attached to Project - Dune
Summary - StructureGrid<Grid<2,3>> in vertexordertest.cc
Task Type - Bug Report
Category - Dune Core Modules
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - 2.0
Due in Version - Undecided
Due Date - Undecided
Details - in dune/grid/utility/test/vertexordertest.cc
there is a test for the surface version of alugrid
which does not work.
The problem is the usage of the StructuredGridFactory.

We have in vertexorder.hh:
246   static const std::size_t dim = Grid::dimension;
247   typedef typename Grid::ctype DF;
248   typedef Dune::FieldVector<DF, dim> Domain;
250   Dune::array<unsigned, dim> elements;
251   std::fill(elements.begin(), elements.end(), 4);
253   Dune::shared_ptr<Grid> gridp = Dune::StructuredGridFactory<Grid>::
254     createSimplexGrid(Domain(0), Domain(1), elements);

while in structuregridfactory.hh:
198         static shared_ptr<GridType> createSimplexGrid(const FieldVector<ctype,dimworld>& lowerLeft,
199                                                       const FieldVector<ctype,dimworld>& upperRight,
200                                                       const array<unsigned int,dim>& elements)

but then again in a method used by structuregridfactory.hh:
 83         static void insertVertices(GridFactory<GridType>& factory,
 84                                    const FieldVector<ctype,dim>& lowerLeft,
 85                                    const FieldVector<ctype,dim>& upperRight,
 86                                    const array<unsigned int,dim>& vertices)

What is wanted? 
A: pass FV<dimension> to the create method (and all verticies are zero in the remaining components).
B: pass FV<dimworld> to the create method (which 'plane' through lower,upper to take?)

I guess A is right and the create method has the wrong signature?

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=974

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