[dune-pdelab] UGGrid error

Carsten Gräser graeser at mi.fu-berlin.de
Tue Sep 15 13:04:50 CEST 2020


Hi Amir,
to me this looks like dune-grid is not build with UGGrid
support. To do so, you need to build dune-uggrid before
dune-grid. Simply using dunecontrol will do all of this
in the appropriate order. I suspect that you've first build
the core-modules (including dune-grid) and later added
dune-uggrid which may explain the problem.

If that's the reason, simply rebuilding dune-grid should
solve the problem.

Best,
Carsten


Am 15.09.20 um 10:59 schrieb Amir Peiraviminaei:
> Hi everyone,
> I'm using DG method to solve a system of PDEs in parallel. When I use
> YASP Grid, It works fine. Now I want to solve it on the unstructured
> grid, but UGGrid doesn't work.
> Errors:
> In function `Dune::UG_NS<2>::DDD_IFOneway(DDD::DDDContext&, unsigned
> int, (anonymous namespace)::D2::DDD_IF_DIR, unsigned long, int
> (*)(DDD::DDDContext&, char*, void*), int (*)(DDD::DDDContext&, char*,
> void*))':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:119:
> undefined reference to `(anonymous
> namespace)::D2::DDD_IFOneway(DDD::DDDContext&, unsigned int, (anonymous
> namespace)::D2::DDD_IF_DIR, unsigned long, int (*)(DDD::DDDContext&,
> char*, void*), int (*)(DDD::DDDContext&, char*, void*))'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::Corner_Coordinates((anonymous namespace)::D2::element
> const*, double**)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:452:
> undefined reference to `(anonymous namespace)::D2::n_offset'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:452:
> undefined reference to `(anonymous namespace)::D2::n_offset'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:452:
> undefined reference to `(anonymous namespace)::D2::n_offset'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:452:
> undefined reference to `(anonymous namespace)::D2::n_offset'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:452:
> undefined reference to `(anonymous namespace)::D2::n_offset'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o:/home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:452:
> more undefined references to `(anonymous namespace)::D2::n_offset' follow
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::Sides_Of_Elem((anonymous namespace)::D2::element const*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:548:
> undefined reference to `(anonymous namespace)::D2::element_descriptors'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::Side_On_Bnd((anonymous namespace)::D2::element const*,
> int)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:576:
> undefined reference to `(anonymous namespace)::D2::side_offset'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::Edges_Of_Elem((anonymous namespace)::D2::element const*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:591:
> undefined reference to `(anonymous namespace)::D2::element_descriptors'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::Corners_Of_Elem((anonymous namespace)::D2::element
> const*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:598:
> undefined reference to `(anonymous namespace)::D2::element_descriptors'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::isLeaf((anonymous namespace)::D2::element const*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:708:
> undefined reference to `(anonymous namespace)::D2::control_entries'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:708:
> undefined reference to `(anonymous namespace)::D2::control_entries'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:708:
> undefined reference to `(anonymous namespace)::D2::control_entries'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::Corner((anonymous namespace)::D2::element const*, int)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:947:
> undefined reference to `(anonymous namespace)::D2::n_offset'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::GetEdge((anonymous namespace)::D2::node*, (anonymous
> namespace)::D2::node*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:962:
> undefined reference to `(anonymous namespace)::D2::GetEdge((anonymous
> namespace)::D2::node const*, (anonymous namespace)::D2::node const*)'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::UGGridEntity((anonymous namespace)::D2::element*,
> Dune::UGGrid<2> const*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/uggridentity.hh:619:
> undefined reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2>
> const*)'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UG_NS<2>::DDD_InfoProcList(DDD::DDDContext&, DDD::DDD_HEADER*)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:134:
> undefined reference to `(anonymous
> namespace)::D2::DDD_InfoProcList(DDD::DDDContext&, DDD::DDD_HEADER*)'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UGGridLeafIterator<0, (Dune::PartitionIteratorType)4,
> Dune::UGGrid<2> const>::globalIncrement()':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:161: undefined
> reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2>
> const*)'
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:176: undefined
> reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2>
> const*)'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UGGridLeafIterator<0, (Dune::PartitionIteratorType)4,
> Dune::UGGrid<2> const>::UGGridLeafIterator(Dune::UGGrid<2> const&)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:54:
> undefined reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2>
> const*)'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UGGridLeafIterator<0, (Dune::PartitionIteratorType)4,
> Dune::UGGrid<2> const>::UGGridLeafIterator()':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:73:
> undefined reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2>
> const*)'
> CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: In function
> `Dune::UGGridLeafIterator<0, (Dune::PartitionIteratorType)1,
> Dune::UGGrid<2> const>::UGGridLeafIterator(Dune::UGGrid<2> const&)':
> /home/peiravim/dune/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:58:
> undefined reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2>
> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2>
> const*)'
> 
> Does anyone know what these errors are about and how can I fix it?
> Thank you.
> Amir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20200915/1fab63f3/attachment.sig>


More information about the dune-pdelab mailing list