[Dune] FW: Problems with installation of DUNE core modules (in particular, with dune-grid-howto)

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Mon Nov 7 15:40:55 CET 2011


Dear Christian,

I have tried to patch the file you sent me yesterday.
Two questions:

1) Since I'm still experiencing compilation errors, can you write me the command line task for patching the file? I think I did right, but I'm not a Unix expert.

2) Recompiling, this message appears on my screen:

g++ -DHAVE_CONFIG_H -I.  -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-common-2.1.0 -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0 -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-istl-2.1.0 -I. -I/usr/local/include  -I/usr/local/include  -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-common-2.1.0  -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0  -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-istl-2.1.0    -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-common-2.1.0 -DGRIDDIM=2 -DWORLDDIM=2 -DYASPGRID  -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0  -I/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-istl-2.1.0 -g -O2 -MT adaptivefinitevolume-adaptivefinitevolume.o -MD -MP -MF .deps/adaptivefinitevolume-adaptivefinitevolume.Tpo -c -o adaptivefinitevolume-adaptivefinitevolume.o `test -f 'adaptivefinitevolume.cc' || echo './'`adaptivefinitevolume.cc
In file included from finitevolumeadapt.hh:7,
                 from adaptivefinitevolume.cc:13:
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/utility/persistentcontainer.hh:428: error: template argument 4 is invalid
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/utility/persistentcontainer.hh:428: error: template argument 3 is invalid
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/utility/persistentcontainer.hh:428: error: expected `{' before ‘>’ token
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/utility/persistentcontainer.hh:428: error: expected unqualified-id before ‘>’ token
finitevolumeadapt.hh: In function ‘bool finitevolumeadapt(G&, M&, V&, int, int, int) [with G = Dune::YaspGrid<2>, M = Dune::LeafMultipleCodimMultipleGeomTypeMapper<Dune::YaspGrid<2>, Dune::MCMGElementLayout>, V = std::vector<double, std::allocator<double> >]’:
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
finitevolumeadapt.hh:70: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
finitevolumeadapt.hh:104: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
finitevolumeadapt.hh:122: error: ‘restrictionmap’ has incomplete type
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
finitevolumeadapt.hh:144: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
finitevolumeadapt.hh:182: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
evolve.hh: In function ‘void evolve(const G&, const M&, V&, double, double&) [with G = Dune::YaspGrid<2>, M = Dune::LeafMultipleCodimMultipleGeomTypeMapper<Dune::YaspGrid<2>, Dune::MCMGElementLayout>, V = std::vector<double, std::allocator<double> >]’:
adaptivefinitevolume.cc:55:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
evolve.hh:88: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entity.hh: In member function ‘typename Dune::Entity<0, dim, GridImp, EntityImp>::Codim<cd>::EntityPointer Dune::Entity<0, dim, GridImp, EntityImp>::subEntity(int) const [with int codim = 2, int dim = 2, GridImp = const Dune::YaspGrid<2>, EntityImp = Dune::YaspEntity]’:
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/io/file/dgfparser/dgfparser.hh:526:   instantiated from ‘void Dune::GridPtr<GridType>::initialize(Dune::DGFGridFactory<GridType>&) [with GridType = Dune::YaspGrid<2>]’
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/io/file/dgfparser/dgfparser.hh:355:   instantiated from ‘Dune::GridPtr<GridType>::GridPtr(const std::string&, Dune::No_Comm) [with GridType = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:107:   instantiated from here
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entity.hh:329: warning: ‘operator 39’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/intersection.hh: In member function ‘typename GridImp::Codim<0>::EntityPointer Dune::Intersection<GridImp, IntersectionImp>::outside() const [with GridImp = const Dune::YaspGrid<2>, IntersectionImp = Dune::YaspIntersection]’:
finitevolumeadapt.hh:70:   instantiated from ‘bool finitevolumeadapt(G&, M&, V&, int, int, int) [with G = Dune::YaspGrid<2>, M = Dune::LeafMultipleCodimMultipleGeomTypeMapper<Dune::YaspGrid<2>, Dune::MCMGElementLayout>, V = std::vector<double, std::allocator<double> >]’
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/intersection.hh:274: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entity.hh: In member function ‘typename GridImp::Codim<0>::EntityPointer Dune::Entity<0, dim, GridImp, EntityImp>::father() const [with int dim = 2, GridImp = const Dune::YaspGrid<2>, EntityImp = Dune::YaspEntity]’:
finitevolumeadapt.hh:144:   instantiated from ‘bool finitevolumeadapt(G&, M&, V&, int, int, int) [with G = Dune::YaspGrid<2>, M = Dune::LeafMultipleCodimMultipleGeomTypeMapper<Dune::YaspGrid<2>, Dune::MCMGElementLayout>, V = std::vector<double, std::allocator<double> >]’
adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
adaptivefinitevolume.cc:122:   instantiated from here
/Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entity.hh:395: warning: ‘operator 38’ is deprecated (declared at /Users/andreasacconi/Università/PhD_ICL/Dune_download/dune-grid-2.1.0/dune/grid/common/entitypointer.hh:169)
make[2]: *** [adaptivefinitevolume-adaptivefinitevolume.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--- Failed to build dune-grid-howto ---
Terminating dunecontrol due to previous errors!


Thanks for your help.
Cheers,

Andrea



Andrea Sacconi
PhD student, Applied Mathematics
Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk

________________________________________
From: christi at mathe-macht-spass.de [christi at mathe-macht-spass.de] on behalf of Christian Engwer [christian.engwer at uni-muenster.de]
Sent: 06 November 2011 10:39
To: Sacconi, Andrea
Cc: dune at dune-project.org
Subject: Re: [Dune] FW: Problems with installation of DUNE core modules (in particular, with dune-grid-howto)

Hi Andrea, dear all,

I had a look into the example, the problem is that the current
implementation of persistentmap does improperly use the allocator of
the value_type instead of the proper allocator the internal data
structure. The linux gcc does allow this usage, in general you have to
use a rebind.

I fix this in the trunk, but I assume you are using 2.1.0. Could you
please test the attached patch with your code.

Christian

On Sun, Nov 06, 2011 at 10:10:12AM +0000, Sacconi, Andrea wrote:
> Hi all,
>
> I'm trying to install DUNE core modules, but I have still a problem.
> I downloaded the six core modules, I put them in the same folder and then typed
>
>   ./dune-common/bin/dunecontrol all
>
> as per instructions. All works well for dune-common, dune-grid and dune-istl, but the process fails with dune-grid-howto.
> This is the message that appears on my screen:
>
> finitevolumeadapt.hh:132:   instantiated from ‘bool finitevolumeadapt(G&, M&, V&, int, int, int) [with G = Dune::YaspGrid<2>, M = Dune::LeafMultipleCodimMultipleGeomTypeMapper<Dune::YaspGrid<2>, Dune::MCMGElementLayout>, V = std::vector<double, std::allocator<double> >]’
> adaptivefinitevolume.cc:34:   instantiated from ‘void timeloop(G&, double, int, int) [with G = Dune::YaspGrid<2>]’
> adaptivefinitevolume.cc:122:   instantiated from here
> /usr/include/c++/4.0.0/bits/stl_tree.h:367: error: no matching function for call to ‘std::allocator<RestrictedValue>::construct(std::pair<const Dune::bigunsignedint<58>, RestrictedValue>*, const std::pair<const Dune::bigunsignedint<58>, RestrictedValue>&)’
> /usr/include/c++/4.0.0/ext/new_allocator.h:103: note: candidates are: void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, const _Tp&) [with _Tp = RestrictedValue]
> make[2]: *** [adaptivefinitevolume-adaptivefinitevolume.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> --- Failed to build dune-grid-howto ---
> Terminating dunecontrol due to previous errors!
>
> I can't understand where I'm doing wrong.
> Yesterday I created a very simple project, containing only one source file (Hello world), and it worked perfectly. Maybe it did since it didn't require dependencies I'm not able to install.
> Other info: MAC OS 10.5.8, gcc 4.2.1.
>
> Cheers,
>
> Andrea
>
>
> _____________________________________
> Andrea Sacconi
> PhD student, Applied Mathematics
> Imperial College London,
> London SW7 2AZ, UK
> a.sacconi11 at imperial.ac.uk

> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune





More information about the Dune mailing list