[Dune] grid.hh and dgfparser.hh problems

Christian May cmay at phys.ethz.ch
Wed Mar 4 19:32:36 CET 2009


Dear developers,

trying to compile

typedef Dune::ALUCubeGrid<3,3> GridType;
Dune::GridPtr<GridType> gridptr("testgrid.dgf", MPI_COMM_WORLD ); //later referred to as line 718

with the svn version gives the following errors:

/cluster/work/phys/cmay/include/dune/grid/common/grid.hh:1294: error: 
declaration of typedef EntityPointerImp<cd, const GridImp> 
Dune::GridTraits<dim, dimw, GridImp, GeometryImp, EntityImp, 
EntityPointerImp, LevelIteratorImp, LeafIntersectionImp, 
LevelIntersectionImp, LeafIntersectionIteratorImp, 
LevelIntersectionIteratorImp, HierarchicIteratorImp, LeafIteratorImp, 
LevelIndexSetImp, LevelIndexSetTypes, LeafIndexSetImp, LeafIndexSetTypes, 
GlobalIdSetImp, GIDType, LocalIdSetImp, LIDType, CCType, 
LevelGridViewTraits, LeafGridViewTraits>::Codim<cd>::EntityPointerImpl

/cluster/work/phys/cmay/include/dune/grid/common/grid.hh:1278: error: 
conflicts with previous declaration typedef EntityPointerImp<cd, const 
GridImp> Dune::GridTraits<dim, dimw, GridImp, GeometryImp, EntityImp, 
EntityPointerImp, LevelIteratorImp, LeafIntersectionImp, 
LevelIntersectionImp, LeafIntersectionIteratorImp, 
LevelIntersectionIteratorImp, HierarchicIteratorImp, LeafIteratorImp, 
LevelIndexSetImp, LevelIndexSetTypes, LeafIndexSetImp, LeafIndexSetTypes, 
GlobalIdSetImp, GIDType, LocalIdSetImp, LIDType, CCType, 
LevelGridViewTraits, LeafGridViewTraits>::Codim<cd>::EntityPointerImpl
/cluster/work/phys/cmay/include/dune/grid/io/file/dgfparser/dgfparser.hh: 
In member function GridType* Dune::MacroGrid::createGrid() [with GridType 
= Dune::ALUCubeGrid<3, 3>]:

/cluster/work/phys/cmay/include/dune/grid/io/file/dgfparser/dgfparser.hh:170: 
instantiated from Dune::GridPtr<GridType>::GridPtr(std::string, 
ompi_communicator_t*) [with GridType = Dune::ALUCubeGrid<3, 3>]
../3D/SPsolver3D-dune.cpp:718:   instantiated from here
/cluster/work/phys/cmay/include/dune/grid/io/file/dgfparser/dgfparser.hh:124: 
error: incomplete type Dune::MacroGrid::Impl<Dune::ALUCubeGrid<3, 3> > 
used in nested name specifier


In grid.hh, EntityPointerImpl is declared twice. If you remove the second 
statement, the error disappears, but I'm not sure about your intentions.

Any help is appreciated.
Christian


---------------------------------------------------------------------------
Christian May

ETH Zurich
Institute for Theoretical Physics, HIT K 31.5
CH-8093 Zurich, Switzerland

Tel: + 41 44 633 79 61
Fax: + 41 44 633 11 15

Email: cmay at itp.phys.ethz.ch






More information about the Dune mailing list