[Dune] Problems with DGF file and Dune::GridPtr
Dedner, Andreas
A.S.Dedner at warwick.ac.uk
Mon Feb 6 20:50:31 CET 2012
Hi Andrea,
that section is outdated - I'll provide a more up to date version
sometime soon. Sorry about that.
In the last release we removed the configure flags
with-grid-dim, with-grid-type
they are not needed anymore and the include is also not needed - including
config.h is enough. To avoid problems with names GridType is now in
the namespace GridSelector.
In the finitevolume example you can see the correct usage:
GridPtr<GridSelector::GridType> gridPtr( dgfFileName.str() );
should do it.
Then you can choose the grid manager while makeing the program:
make GRIDTYPE=ALUGRID_SIMPLEX GRIDDIM=2 GRIDWORLD=3
for example.
Hope that helps along
Andreas
-----Original Message-----
From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org on behalf of Sacconi, Andrea
Sent: Mon 2/6/2012 6:08 PM
To: dune at dune-project.org
Subject: [Dune] Problems with DGF file and Dune::GridPtr
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/682ab6cf/attachment.htm>
More information about the Dune
mailing list