[Dune] problem with installation of pdelab-howto on Mac

Oliver Sander sander at igpm.rwth-aachen.de
Fri Aug 30 08:42:05 CEST 2013


Hi Mariya,
your compiler is too old.  The offending line is

std::vector<Dune::FieldVector<ctype,dim>>
   edgecenter( nEdgeCenters, Dune::FieldVector<ctype,dim>(0) );

It contains >> to close a nested template argument.  That's only
excepted by later versions of gcc.  So either you need to update
your compiler, or just change the line to

std::vector<Dune::FieldVector<ctype,dim> >
   edgecenter( nEdgeCenters, Dune::FieldVector<ctype,dim>(0) );

[note the extra space > >]

Best,
Oliver

Am 29.08.2013 22:05, schrieb Mariya Ptashnyk:
> Dear DUNE-Developers,
>
> I was trying but unsuccessfully to install pdelab-howto on a Mac computer.
> I was able to install DUNE core modules and pdelab itself, but during the installation of pdelab-howto I got some erros (see a part of them below).
> If you maybe have any idea what is missing, I would be very grateful for your help.
> I  installed  dune core 2.2.1,  pdelab 1.1.0 and have g++ 4.2.1 and gfortran-4.7
>
> Best regards,
>
> Mariya Ptashnyk
> University of Dundee.
>
>   warning: #warning The FieldVector class exports its size by the enum member 'size'. This behavior is deprecated. In the future, 'size' will be a method, which puts it in compliance with the stl
> conventions. To enable the new behavior (and get rid of this warning), build your Dune with --enable-fieldvector-size-is-method. If you do need the vector size as an enum, use 'dimension'.
> In file included from /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodeconstraints.hh:12,
>                   from poisson.cc:32:
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh: In member function ‘void Dune::PDELab::HangingNodeManager<Grid,
> BoundaryFunction>::adaptToIsolatedHangingNodes()’:
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh:406: error: ‘nEdgeCenters’ cannot appear in a constant-expression
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh:406: error: a function call cannot appear in a constant-expression
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh:406: error: template argument 2 is invalid
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh:405: error: template argument 1 is invalid
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh:405: error: template argument 2 is invalid
> /Users/mptashnyk/dune/dune-pdelab-1.1.0/dune/pdelab/finiteelementmap/hangingnodemanager.hh:427: error: ‘edgecenter’ was not declared in this scope
> make[4]: *** [poisson-poisson.o] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> --- Failed to build dune-pdelab-howto ---
> Terminating dunecontrol due to previous errors!
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>





More information about the Dune mailing list