[Dune] [#900] Can't use GeometryGrid with the PoolAllocator

Dune flyspray at dune-project.org
Tue Apr 10 07:56:10 CEST 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#900 - Can't use GeometryGrid with the PoolAllocator
User who did this - Oliver Sander (sander)

----------
Thanks to work by Martin, the test compiles now (as of dune-grid 7985).  Running it raises a bad_alloc exception though.  Here is the backtrace:

Catchpoint 1 (exception thrown), 0x00007ffff5aa1800 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(gdb) bt
#0  0x00007ffff5aa1800 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00000000004b4f53 in Dune::PoolAllocator<char, 16384ul>::allocate (this=0x8806a8, n=152, hint=0x0) at /home/sander/dune-test/dune-common/dune/common/poolallocator.hh:564
#2  0x00000000004868a5 in Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> >::allocateMappingStorage<0> (
    this=0x880660, gt=...) at ../../../dune/grid/geometrygrid/grid.hh:685
#3  0x000000000045e340 in Dune::GeoGrid::Geometry<2, 2, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const>::Geometry<Dune::GeoGrid::CoordVector<2, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const, false> > (this=0x7fffffffdb00, grid=..., type=..., coords=...) at ../../../dune/grid/geometrygrid/geometry.hh:147
#4  0x000000000043d049 in Dune::GeoGrid::EntityBase<0, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const, false>::geometry (this=0x7fffffffe2c0) at ../../../dune/grid/geometrygrid/entity.hh:226
#5  0x00000000004ae473 in Dune::GeoGrid::IntersectionIterator<Dune::GeoGrid::LevelIntersectionIteratorTraits<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const> >::IntersectionIterator<Dune::GeoGrid::Entity<0, 2, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const> > (this=0x7fffffffdc00, inside=..., hostIterator=...) at ../../../dune/grid/geometrygrid/intersectioniterator.hh:54
#6  0x000000000047fc8b in Dune::GeoGrid::LevelIntersectionIterator<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const>::LevelIntersectionIterator<Dune::GeoGrid::Entity<0, 2, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const> > (this=0x7fffffffdc00, inside=..., hostIterator=...) at ../../../dune/grid/geometrygrid/intersectioniterator.hh:177
#7  0x00000000004ad342 in Dune::GeoGrid::Entity<0, 2, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const>::ilevelend (this=0x7fffffffe2c0) at ../../../dune/grid/geometrygrid/entity.hh:737
#8  0x000000000047d487 in Dune::Entity<0, 2, Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const, Dune::GeoGrid::Entity>::ilevelend (this=0x7fffffffe2c0) at ../../../dune/grid/common/entity.hh:399
#9  0x00000000004578f5 in Dune::DefaultLevelGridView<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const, (Dune::PartitionIteratorType)4>::iend (this=0x7fffffffe370, entity=...) at ../../../dune/grid/common/defaultgridview.hh:186
#10 0x00000000004375da in Dune::GridView<Dune::DefaultLevelGridViewTraits<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > const, (Dune::PartitionIteratorType)4> >::iend (this=0x7fffffffe370, entity=...) at ../../../dune/grid/common/gridview.hh:218
#11 0x0000000000419e99 in Dune::GridPtr<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > >::initialize (
    this=0x7fffffffe540, dgfFactory=...) at ../../../dune/grid/io/file/dgfparser/gridptr.hh:302
#12 0x0000000000409898 in Dune::GridPtr<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > >::GridPtr (
    this=0x7fffffffe540, filename="../../../doc/grids/dgf/cube-2.dgf", comm=...) at ../../../dune/grid/io/file/dgfparser/gridptr.hh:64
#13 0x0000000000406312 in test<Dune::GeometryGrid<Dune::YaspGrid<2>, Dune::IdenticalCoordFunction<double, 2u>, Dune::PoolAllocator<char, 16384ul> > > (gridfile=
    "../../../doc/grids/dgf/cube-2.dgf") at test-geogrid.cc:60
#14 0x0000000000402e66 in main (argc=1, argv=0x7fffffffe7a8) at test-geogrid.cc:113

----------

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

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