[Dune] Problems with DGF file and Dune::GridPtr

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Mon Feb 6 19:08:57 CET 2012


Hi eveyone,

I am trying to reproduce (with the stable version 2.1.1) some of the examples given in the Dune Grid Format (DGF), following the pdf manual on grids (page 23).
The problem arises when I want to use GridPtr.

In particular, when I try to read a .dgf file, as in this line:

GridPtr <GridType> gridPtr ("myfile.dgf");

the compiler tells me that there is neither GridType nor GridPtr declared.
In particular, if I include:

#include<dune/grid/io/file/dgfparser/dgfgridtype.hh>

I get this error:

.../Dune_download/dune-grid-2.1.1/dune/grid/utility/gridtype.hh:24:6: error: #error "No grid type selected, typo in GRIDTYPE=...?"

So, my questions are:

1) Where (or how) do I have to put the definition of GRIDTYPE=ALUGRID_SIMPLEX ?
2) Which scope resolution operator should I use, once the proper inclusion had been made? Simply Dune::GridPtr ?

Thanks in advance!

Andrea

__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120206/051e1fb9/attachment.htm>


More information about the Dune mailing list