[Dune] [#584] Replace SmartPointer by shared_ptr

Dune dune at dune-project.org
Mon Oct 26 10:35:44 CET 2009


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 - Markus Blatt (mblatt)

----------
Apparantly this broke the VTKwriter:

Dear Dune, the finitevolume.cc in dune-grid-howto, version number see below, does not compile does not compile
on Mac OS when I last checked it out this morning.

Thanks for having a look, Benedikt


mpicxx -DHAVE_CONFIG_H -I.  -I/Users/oswald/svnwork/dune-trunk/dune-common -I/Users/oswald/svnwork/dune-trunk/dune-grid -I. -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -D_REENTRANT
+-I/Users/oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3  -I/Users/oswald/svnwork/dune-trunk/dune-common
+-I/Users/oswald/extlib/ALUGrid-1.14/include -I/Users/oswald/extlib/ALUGrid-1.14/include/serial -I/Users/oswald/extlib/ALUGrid-1.14/include/duneinterface -DENABLE_ALUGRID
+-I/Users/oswald/extlib/ALUGrid-1.14/include/parallel -I/Users/oswald/svnwork/dune-trunk/dune-grid -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -MT finitevolume-finitevolume.o -MD -MP -MF
+.deps/finitevolume-finitevolume.Tpo -c -o finitevolume-finitevolume.o `test -f 'finitevolume.cc' || echo './'`finitevolume.cc
In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/dgfgridtype.hh:87,
                 from finitevolume.cc:9:
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/gridtype.hh:224:6: warning: #warning "No GRIDTYPE defined, defaulting to YASPGRID."
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/vtk/vtkwriter.hh: In member function 'void Dune::VTKWriter<GridView>::addCellData(const V&, std::string) [with V =
+std::vector<double, std::allocator<double> >, GridView = Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<3>, All_Partition> >]':
vtkout.hh:12:   instantiated from 'void vtkout(const G&, const V&, const char*, int, double, int) [with G = Dune::YaspGrid<3>, V = std::vector<double, std::allocator<double> >]'
finitevolume.cc:44:   instantiated from 'void timeloop(const G&, double) [with G = Dune::YaspGrid<3>]'
finitevolume.cc:114:   instantiated from here
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/vtk/vtkwriter.hh:605: error: no matching function for call to
+'std::list<std::tr1::shared_ptr<Dune::VTKFunction<Dune::YaspGrid<3> > >, std::allocator<std::tr1::shared_ptr<Dune::VTKFunction<Dune::YaspGrid<3> > > >
+>::push_back(Dune::VTKFunction<Dune::YaspGrid<3> >*&)'
/usr/include/c++/4.0.0/bits/stl_list.h:772: note: candidates are: void std::list<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp =
+std::tr1::shared_ptr<Dune::VTKFunction<Dune::YaspGrid<3> > >, _Alloc = std::allocator<std::tr1::shared_ptr<Dune::VTKFunction<Dune::YaspGrid<3> > > >]
make[2]: *** [finitevolume-finitevolume.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=584#comment1234

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.




More information about the Dune mailing list