[Dune] About geometryInInSide in UGGrid

Martin Nolte nolte at mathematik.uni-freiburg.de
Tue Mar 31 19:03:14 CEST 2009


Hi Yufei,

did you recompile the dune-grid library? I also had linking problems directly
after changing these methods. Just calling 'make' in the dune-grid directory
recompiled the library and everything worked fine for me.

Note that SGrid does not put the intersection iterator into the library.
Therefore, you did not encounter this problem with SGrid.

Yours,

Martin

Yufei Cao wrote:
> Dear all,
> 
> When I change my own code in terms of DUNE's change, such 
> as change 'IntersectionSelfLocal()' to 
> 'geometryInInside()', I got some problems (see below) with 
> UGGrid. It seems (but not sure) that for UGGrid, 
> geometryInInside() can not be found. However, it works 
> with SGrid.
> 
> Can anyone help me to solve the problem with UGGrid? Thank 
> you so much in advance!
> 
> Best regards,
> Yufei
> 
> 
> test-test.o: In function 
> `Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::Codim<0>::Iterator 
> Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::begin<0>() const':
> /DUNE/dune-grid/dune/grid/common/defaultgridview.hh:150: 
> undefined reference to `Dune::GridTraits<2, 2, 
> Dune::UGGrid<2>, Dune::UGGridGeometry, Dune::UGGridEntity, 
> Dune::UGGridEntityPointer, Dune::UGGridLevelIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridHierarchicIterator, Dune::UGGridLeafIterator, 
> Dune::UGGridLevelIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridLeafIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridIdSet<Dune::UGGrid<2> const, false>, unsigned 
> int, Dune::UGGridIdSet<Dune::UGGrid<2> const, true>, 
> unsigned int, 
> Dune::CollectiveCommunication<Dune::UGGrid<2> >, 
> Dune::DefaultLevelGridViewTraits, 
> Dune::DefaultLeafGridViewTraits>::Codim<0>::Partition::LevelIterator 
> Dune::UGGrid<2>::lbegin<0, 
> (Dune::PartitionIteratorType)4>(int) const'
> test-test.o: In function 
> `Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::Codim<0>::Iterator 
> Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::end<0>() const':
> /DUNE/dune-grid/dune/grid/common/defaultgridview.hh:164: 
> undefined reference to `Dune::GridTraits<2, 2, 
> Dune::UGGrid<2>, Dune::UGGridGeometry, Dune::UGGridEntity, 
> Dune::UGGridEntityPointer, Dune::UGGridLevelIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridHierarchicIterator, Dune::UGGridLeafIterator, 
> Dune::UGGridLevelIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridLeafIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridIdSet<Dune::UGGrid<2> const, false>, unsigned 
> int, Dune::UGGridIdSet<Dune::UGGrid<2> const, true>, 
> unsigned int, 
> Dune::CollectiveCommunication<Dune::UGGrid<2> >, 
> Dune::DefaultLevelGridViewTraits, 
> Dune::DefaultLeafGridViewTraits>::Codim<0>::Partition::LevelIterator 
> Dune::UGGrid<2>::lend<0, 
> (Dune::PartitionIteratorType)4>(int) const'
> test-test.o: In function 
> `Dune::Intersection<Dune::UGGrid<2> const, 
> Dune::UGGridLevelIntersectionIterator>::geometryInInside() 
> const':
> /DUNE/dune-grid/dune/grid/common/intersection.hh:247: 
> undefined reference to 
> `Dune::UGGridLevelIntersectionIterator<Dune::UGGrid<2> 
> const>::geometryInInside() const'
> test-test.o: In function 
> `Dune::UGGridLevelIntersectionIterator<Dune::UGGrid<2> 
> const>::integrationOuterNormal(Dune::FieldVector<double, 
> 1> const&) const':
> /DUNE/dune-grid/dune/grid/uggrid/ugintersectionit.hh:152: 
> undefined reference to 
> `Dune::UGGridLevelIntersectionIterator<Dune::UGGrid<2> 
> const>::geometry() const'
> test-test.o: In function 
> `Dune::Intersection<Dune::UGGrid<2> const, 
> Dune::UGGridLevelIntersectionIterator>::geometry() const':
> /DUNE/dune-grid/dune/grid/common/intersection.hh:279: 
> undefined reference to 
> `Dune::UGGridLevelIntersectionIterator<Dune::UGGrid<2> 
> const>::geometry() const'
> test-test.o: In function `Dune::Diffusion<Dune::UGGrid<2>, 
> double, Dune::VariableClass<Dune::UGGrid<2>, double>, 
> Dune::DiffusionProblem<Dune::UGGrid<2>, double, 
> Dune::VariableClass<Dune::UGGrid<2>, double> > 
>> ::assemble(double)':
> /DUNE/dune-appl/test/diffusion/../../../../diffusion/diffusion.hh:343: 
> undefined reference to `Dune::GridTraits<2, 2, 
> Dune::UGGrid<2>, Dune::UGGridGeometry, Dune::UGGridEntity, 
> Dune::UGGridEntityPointer, Dune::UGGridLevelIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridHierarchicIterator, Dune::UGGridLeafIterator, 
> Dune::UGGridLevelIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridLeafIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridIdSet<Dune::UGGrid<2> const, false>, unsigned 
> int, Dune::UGGridIdSet<Dune::UGGrid<2> const, true>, 
> unsigned int, 
> Dune::CollectiveCommunication<Dune::UGGrid<2> >, 
> Dune::DefaultLevelGridViewTraits, 
> Dune::DefaultLeafGridViewTraits>::Codim<0>::LevelIterator 
> Dune::UGGrid<2>::lend<0>(int) const'
> test-test.o: In function 
> `Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::Codim<0>::Partition::Iterator 
> Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::end<0, 
> (Dune::PartitionIteratorType)1>() const':
> /DUNE/dune-grid/dune/grid/common/defaultgridview.hh:171: 
> undefined reference to `Dune::GridTraits<2, 2, 
> Dune::UGGrid<2>, Dune::UGGridGeometry, Dune::UGGridEntity, 
> Dune::UGGridEntityPointer, Dune::UGGridLevelIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridHierarchicIterator, Dune::UGGridLeafIterator, 
> Dune::UGGridLevelIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridLeafIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridIdSet<Dune::UGGrid<2> const, false>, unsigned 
> int, Dune::UGGridIdSet<Dune::UGGrid<2> const, true>, 
> unsigned int, 
> Dune::CollectiveCommunication<Dune::UGGrid<2> >, 
> Dune::DefaultLevelGridViewTraits, 
> Dune::DefaultLeafGridViewTraits>::Codim<0>::Partition::LevelIterator 
> Dune::UGGrid<2>::lend<0, 
> (Dune::PartitionIteratorType)1>(int) const'
> test-test.o: In function 
> `Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::Codim<0>::Partition::Iterator 
> Dune::DefaultLevelGridView<Dune::UGGrid<2> const, 
> (Dune::PartitionIteratorType)4>::begin<0, 
> (Dune::PartitionIteratorType)1>() const':
> /DUNE/dune-grid/dune/grid/common/defaultgridview.hh:157: 
> undefined reference to `Dune::GridTraits<2, 2, 
> Dune::UGGrid<2>, Dune::UGGridGeometry, Dune::UGGridEntity, 
> Dune::UGGridEntityPointer, Dune::UGGridLevelIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridLeafIntersectionIterator, 
> Dune::UGGridLevelIntersectionIterator, 
> Dune::UGGridHierarchicIterator, Dune::UGGridLeafIterator, 
> Dune::UGGridLevelIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridLeafIndexSet<Dune::UGGrid<2> const>, 
> Dune::UGGridIdSet<Dune::UGGrid<2> const, false>, unsigned 
> int, Dune::UGGridIdSet<Dune::UGGrid<2> const, true>, 
> unsigned int, 
> Dune::CollectiveCommunication<Dune::UGGrid<2> >, 
> Dune::DefaultLevelGridViewTraits, 
> Dune::DefaultLeafGridViewTraits>::Codim<0>::Partition::LevelIterator 
> Dune::UGGrid<2>::lbegin<0, 
> (Dune::PartitionIteratorType)1>(int) const'
> collect2: ld returned 1 exit status
> make: *** [test] Error 1
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-- 
Martin Nolte <nolte at mathematik.uni-freiburg.de>

Universität Freiburg                                   phone: +49-761-203-5642
Abteilung für angewandte Mathematik                    fax:   +49-761-203-5632
Hermann-Herder-Straße 10
79104 Freiburg, Germany





More information about the Dune mailing list