[Dune] Grid compile error for dim=2

Ganesh Diwan gcdiwan83 at gmail.com
Sun Aug 9 20:49:49 CEST 2015


Hi Dune

I am trying to run the test example for loadbalancing
(/dune-alugrid/examples/loadbalance) for GRIDDIM=2 by invoking:
make main_zoltan GRIDDIM=2 WORLDDIM=2 GRIDTYPE=ALUGRID_CUBE

But I get the following long error message. Am I passing the flags for 2D
correctlyor do I have to make any additional changes to ?
I can build the exe for GRIDDIM=3 fine though.


g++-4.8 -std=c++11 -DHAVE_CONFIG_H -I. -I../..
-I/home/gcd3/dune/core/dune-common-2.3.0
-I/home/gcd3/dune/core/dune-common-2.3.0
-I/home/gcd3/dune/core/dune-geometry-2.3.0
-I/home/gcd3/dune/core/dune-geometry-2.3.0
-I/home/gcd3/dune/core/dune-grid-2.3.0
-I/home/gcd3/dune/core/dune-grid-2.3.0 -I../..
-I/home/gcd3/dune/external/builds/Zoltan_v3.81/include -DENABLE_ZOLTAN=1
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
-DMPIPP_H -DENABLE_MPI=1 -I/usr/lib/openmpi/include
-I/usr/lib/openmpi/include/openmpi -pthread -DMPIPP_H -DENABLE_MPI=1
-I/usr/include  -DENABLE_PARMETIS=1  -DENABLE_ZLIB=1  -DBALL
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread
-DMPIPP_H -DENABLE_MPI=1 -DGRIDDIM=2 -DWORLDDIM=2 -DALUGRID_CUBE
-DUSE_ZOLTANLB=1   -g -O2 -Wall -MT main_zoltan-main.o -MD -MP -MF
.deps/main_zoltan-main.Tpo -c -o main_zoltan-main.o `test -f 'main.cc' ||
echo './'`main.cc
main.cc: In function ‘void method(int, int, int, const char*, int)’:
main.cc:113:10: error: ‘Grid’ has no member named ‘repartition’
     grid.repartition( ldb );
          ^
In file included from main.cc:24:0:
loadbalance_zoltan.hh: In instantiation of ‘void
ZoltanLoadBalanceHandle<Grid>::generateHypergraph() [with Grid =
Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)1u,
(Dune::ALUGridRefinementType)1u>]’:
loadbalance_zoltan.hh:107:24:   required from ‘bool
ZoltanLoadBalanceHandle<Grid>::repartition() [with Grid = Dune::ALUGrid<2,
2, (Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>]’
main.cc:112:24:   required from here
loadbalance_zoltan.hh:298:40: error: no type named ‘MacroGridView’ in
‘class Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)1u,
(Dune::ALUGridRefinementType)1u>’
   typedef typename Grid::MacroGridView GridView;
                                        ^
In file included from fvscheme.hh:9:0,
                 from main.cc:20:
adaptation.hh: In instantiation of ‘void LeafAdaptation<Grid, Vector,
LoadBalanceHandle>::finalize() [with Grid = Dune::ALUGrid<2, 2,
(Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>; Vector =
PiecewiseFunction<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)1u,
(Dune::ALUGridRefinementType)1u>, (Dune::PartitionIteratorType)0u> >,
Dune::FieldVector<double, 1> >; LoadBalanceHandle =
ZoltanLoadBalanceHandle<Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)1u,
(Dune::ALUGridRefinementType)1u> >]’:
adaptation.hh:175:12:   required from ‘void LeafAdaptation<Grid, Vector,
LoadBalanceHandle>::operator()(Vector&) [with Grid = Dune::ALUGrid<2, 2,
(Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>; Vector =
PiecewiseFunction<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)1u,
(Dune::ALUGridRefinementType)1u>, (Dune::PartitionIteratorType)0u> >,
Dune::FieldVector<double, 1> >; LoadBalanceHandle =
ZoltanLoadBalanceHandle<Dune::ALUGrid<2, 2, (Dune::ALUGridElementType)1u,
(Dune::ALUGridRefinementType)1u> >]’
main.cc:150:28:   required from here
adaptation.hh:214:5: error: ‘class Dune::ALUGrid<2, 2,
(Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>’ has no
member named ‘repartition’
     grid_.repartition( ldb_, dataHandle );
     ^
In file included from ../../dune/alugrid/3d/grid.hh:17:0,
                 from ../../dune/alugrid/3d/geometry_imp.cc:6,
                 from ../../dune/alugrid/3d/geometry.hh:806,
                 from ../../dune/alugrid/3d/iterator_imp.cc:8,
                 from ../../dune/alugrid/3d/iterator.hh:789,
                 from ../../dune/alugrid/3d/alugrid.hh:7,
                 from ../../dune/alugrid/grid.hh:16,
                 from ../../config.h:514,
                 from main.cc:4:
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh: In
instantiation of ‘void Dune::SizeCache<GridImp>::countLeafEntities() const
[with Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)4u;
int codim = 0; GridImp = Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>]’:
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:100:11:
required from ‘static void
Dune::SizeCache<GridImp>::CountLeafEntitiesBase<codim,
gridHasCodim>::apply(const SzCacheType&, int) [with SzCacheType =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u> >; int
codim = 0; bool gridHasCodim = true; GridImp = Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>]’
/home/gcd3/dune/core/dune-common-2.3.0/dune/common/forloop.hh:57:26:
required from ‘static void Dune::ForLoopHelper::Apply<A, B>::apply(T1&,
T2&) [with T1 = const Dune::SizeCache<Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u> >; T2 = int; A =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities<0>; B =
Dune::GenericForLoop<Dune::ForLoopHelper::Apply,
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities, 1, 2>]’
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:207:69:
required from ‘int Dune::SizeCache<GridImp>::size(int) const [with GridImp
= Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>]’
../../dune/alugrid/2d/grid_imp.cc:358:34:   required from ‘int
Dune::ALU2dGrid<dim, dimworld, eltype>::size(int) const [with int dim = 2;
int dimworld = 2; ALU2DGrid::ElementType eltype =
(ALU2DGrid::ElementType)1u]’
loadbalance_zoltan.hh:87:32:   required from ‘bool
ZoltanLoadBalanceHandle<Grid>::repartition() [with Grid = Dune::ALUGrid<2,
2, (Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>]’
main.cc:112:24:   required from here
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:242:42:
warning: ‘typename
GridFamily::Traits::Partition<All_Partition>::LeafGridView
Dune::GridDefaultImplementation<<anonymous>, <anonymous>,
<template-parameter-1-3>, <template-parameter-1-4> >::leafView() const
[with int dim = 2; int dimworld = 2; ct = double; GridFamily =
Dune::ALU2dGridFamily<2, 2, (ALU2DGrid::ElementType)1u>; typename
GridFamily::Traits::Partition<All_Partition>::LeafGridView =
Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>, (Dune::PartitionIteratorType)4u> >]’ is
deprecated (declared at
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/grid.hh:1055): "The
method leafView has been renamed to leafGridView."
[-Wdeprecated-declarations]
       GridView gridView = grid_.leafView();
                                          ^
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh: In
instantiation of ‘void Dune::SizeCache<GridImp>::countLeafEntities() const
[with Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)4u;
int codim = 1; GridImp = Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>]’:
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:100:11:
required from ‘static void
Dune::SizeCache<GridImp>::CountLeafEntitiesBase<codim,
gridHasCodim>::apply(const SzCacheType&, int) [with SzCacheType =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u> >; int
codim = 1; bool gridHasCodim = true; GridImp = Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>]’
/home/gcd3/dune/core/dune-common-2.3.0/dune/common/forloop.hh:57:26:
required from ‘static void Dune::ForLoopHelper::Apply<A, B>::apply(T1&,
T2&) [with T1 = const Dune::SizeCache<Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u> >; T2 = int; A =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities<1>; B =
Dune::GenericForLoop<Dune::ForLoopHelper::Apply,
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities, 2, 2>]’
/home/gcd3/dune/core/dune-common-2.3.0/dune/common/forloop.hh:58:26:
required from ‘static void Dune::ForLoopHelper::Apply<A, B>::apply(T1&,
T2&) [with T1 = const Dune::SizeCache<Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u> >; T2 = int; A =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities<0>; B =
Dune::GenericForLoop<Dune::ForLoopHelper::Apply,
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities, 1, 2>]’
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:207:69:
required from ‘int Dune::SizeCache<GridImp>::size(int) const [with GridImp
= Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>]’
../../dune/alugrid/2d/grid_imp.cc:358:34:   required from ‘int
Dune::ALU2dGrid<dim, dimworld, eltype>::size(int) const [with int dim = 2;
int dimworld = 2; ALU2DGrid::ElementType eltype =
(ALU2DGrid::ElementType)1u]’
loadbalance_zoltan.hh:87:32:   required from ‘bool
ZoltanLoadBalanceHandle<Grid>::repartition() [with Grid = Dune::ALUGrid<2,
2, (Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>]’
main.cc:112:24:   required from here
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:242:42:
warning: ‘typename
GridFamily::Traits::Partition<All_Partition>::LeafGridView
Dune::GridDefaultImplementation<<anonymous>, <anonymous>,
<template-parameter-1-3>, <template-parameter-1-4> >::leafView() const
[with int dim = 2; int dimworld = 2; ct = double; GridFamily =
Dune::ALU2dGridFamily<2, 2, (ALU2DGrid::ElementType)1u>; typename
GridFamily::Traits::Partition<All_Partition>::LeafGridView =
Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>, (Dune::PartitionIteratorType)4u> a>]’ is
deprecated (declared at
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/grid.hh:1055): "The
method leafView has been renamed to leafGridView."
[-Wdeprecated-declarations]
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh: In
instantiation of ‘void Dune::SizeCache<GridImp>::countLeafEntities() const
[with Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)4u;
int codim = 2; GridImp = Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>]’:
/home/gcd3/dune/core/dune-common-2.3.0/dune/common/forloop.hh:58:26:
recursively required from ‘static void Dune::ForLoopHelper::Apply<A,
B>::apply(T1&, T2&) [with T1 = const Dune::SizeCache<Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u> >; T2 = int; A =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities<1>; B =
Dune::GenericForLoop<Dune::ForLoopHelper::Apply,
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities, 2, 2>]’
/home/gcd3/dune/core/dune-common-2.3.0/dune/common/forloop.hh:58:26:
required from ‘static void Dune::ForLoopHelper::Apply<A, B>::apply(T1&,
T2&) [with T1 = const Dune::SizeCache<Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u> >; T2 = int; A =
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities<0>; B =
Dune::GenericForLoop<Dune::ForLoopHelper::Apply,
Dune::SizeCache<Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>
>::CountLeafEntities, 1, 2>]’
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:207:69:
required from ‘int Dune::SizeCache<GridImp>::size(int) const [with GridImp
= Dune::ALU2dGrid<2, 2, (ALU2DGrid::ElementType)1u>]’
../../dune/alugrid/2d/grid_imp.cc:358:34:   required from ‘int
Dune::ALU2dGrid<dim, dimworld, eltype>::size(int) const [with int dim = 2;
int dimworld = 2; ALU2DGrid::ElementType eltype =
(ALU2DGrid::ElementType)1u]’
loadbalance_zoltan.hh:87:32:   required from ‘bool
ZoltanLoadBalanceHandle<Grid>::repartition() [with Grid = Dune::ALUGrid<2,
2, (Dune::ALUGridElementType)1u, (Dune::ALUGridRefinementType)1u>]’
main.cc:112:24:   required from here
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/sizecache.hh:242:42:
warning: ‘typename
GridFamily::Traits::Partition<All_Partition>::LeafGridView
Dune::GridDefaultImplementation<<anonymous>, <anonymous>,
<template-parameter-1-3>, <template-parameter-1-4> >::leafView() const
[with int dim = 2; int dimworld = 2; ct = double; GridFamily =
Dune::ALU2dGridFamily<2, 2, (ALU2DGrid::ElementType)1u>; typename
GridFamily::Traits::Partition<All_Partition>::LeafGridView =
Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::ALU2dGrid<2, 2,
(ALU2DGrid::ElementType)1u>, (Dune::PartitionIteratorType)4u> >]’ is
deprecated (declared at
/home/gcd3/dune/core/dune-grid-2.3.0/dune/grid/common/grid.hh:1055): "The
method leafView has been renamed to leafGridView."
[-Wdeprecated-declarations]
make: *** [main_zoltan-main.o] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20150809/291bc34a/attachment.htm>


More information about the Dune mailing list