[Dune] [#584] Replace SmartPointer by shared_ptr

Oliver Sander sander at mi.fu-berlin.de
Mon Oct 26 11:23:52 CET 2009


I think this one is for Markus :-)

Oswald Benedikt schrieb:
> Hi, it now advances through dune-grid-howto, but crashed in istl:
>
>
> --- calling make for dune-istl ---
> make 
> make  all-recursive
> Making all in dune
> Making all in istl
> Making all in .
> make[4]: Nothing to be done for `all-am'.
> Making all in tutorial
> mpicxx -DHAVE_CONFIG_H -I. -I../../..  -I/Users/oswald/svnwork/dune-trunk/dune-common -I../../.. -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3  -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -MT example.o -MD -MP -MF .deps/example.Tpo -c -o example.o example.cc
> /usr/include/c++/4.0.0/bits/stl_tree.h: In member function '_Alloc std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::get_allocator() const [with _Key = long unsigned int, _Val = long unsigned int, _KeyOfValue = std::_Identity<long unsigned int>, _Compare = std::less<long unsigned int>, _Alloc = Dune::PoolAllocator<long unsigned int, 10ul>]':
> /usr/include/c++/4.0.0/bits/stl_tree.h:558:   instantiated from 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Rb_tree(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>&) [with _Key = long unsigned int, _Val = long unsigned int, _KeyOfValue = std::_Identity<long unsigned int>, _Compare = std::less<long unsigned int>, _Alloc = Dune::PoolAllocator<long unsigned int, 10ul>]'
> /usr/include/c++/4.0.0/bits/stl_set.h:202:   instantiated from 'std::set<_Key, _Compare, _Alloc>::set(const std::set<_Key, _Compare, _Alloc>&) [with _Key = long unsigned int, _Compare = std::less<long unsigned int>, _Alloc = Dune::PoolAllocator<long unsigned int, 10ul>]'
> ../../../dune/istl/bcrsmatrix.hh:573:   instantiated from here
> /usr/include/c++/4.0.0/bits/stl_tree.h:351: error: conversion from 'const std::allocator<std::_Rb_tree_node<long unsigned int> >' to non-scalar type 'Dune::PoolAllocator<long unsigned int, 10ul>' requested
> make[4]: *** [example.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-istl ---
> Execution of dunecontrol terminated due to errors!
>
>
> ------------------------------------------------------------------------------------------------------------------
> Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist
> Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12
> "Passion is required for any great work, and for the Revolution passion and audacity are required in big doses.", 
> Ernesto 'Che' Guevara, Letter to his parents.
> http://maxwell.psi.ch/amaswiki/index.php/User:BenediktOswald 
> ------------------------------------------------------------------------------------------------------------------
>
>
>
>
> -----Original Message-----
> From: dune-bounces+benedikt.oswald=psi.ch at dune-project.org on behalf of Dune
> Sent: Mon 26.10.2009 11:02
> To: dune at dune-project.org
> Subject: [Dune] [#584] Replace SmartPointer by shared_ptr
>  
> THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
>
> The following task has a new comment added:
>
> FS#584 - Replace SmartPointer by shared_ptr
> User who did this - Oliver Sander (sander)
>
> ----------
> @Benedikt: just from looking at it I suspect it may be a missing implicit conversion from a plain pointer to a shared_ptr on whatever implementation you happen to use on your platform. Could you please upgrade vtkwriter.hh and try again?
>
> Thanks
> ----------
>
> More information can be found at the following URL:
> http://www.dune-project.org/flyspray/index.php?do=details&task_id=584#comment1237
>
> You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>   


-- 
************************************************************************
* Oliver Sander                ** email: sander at mi.fu-berlin.de        *
* Freie Universität Berlin     ** phone: + 49 (30) 838 75348           *
* Institut für Mathematik      ** URL  : page.mi.fu-berlin.de/~sander  *
* Arnimallee 6                 ** -------------------------------------*
* 14195 Berlin, Germany        ** Member of MATHEON (www.matheon.de)   *
************************************************************************





More information about the Dune mailing list