<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi Dominic,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">The error is the same as before:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">[100%] Linking CXX executable hydrateDG-Ex1<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: 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*))':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:115: 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*))'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::Sides_Of_Elem((anonymous namespace)::D2::element const*)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:544: undefined reference to `(anonymous namespace)::D2::element_descriptors'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::isLeaf((anonymous namespace)::D2::element const*)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:704: undefined reference to `(anonymous namespace)::D2::control_entries'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:704: undefined reference to `(anonymous namespace)::D2::control_entries'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:704: undefined reference to `(anonymous namespace)::D2::control_entries'<br>/usr/bin/ld: 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*)':<br>/home/amir/dune-2.7/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*)'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::DDD_InfoProcList(DDD::DDDContext&, DDD::DDD_HEADER*)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:130: undefined reference to `(anonymous namespace)::D2::DDD_InfoProcList(DDD::DDDContext&, DDD::DDD_HEADER*)'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::Corner_Coordinates((anonymous namespace)::D2::element const*, double**)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:448: undefined reference to `(anonymous namespace)::D2::n_offset'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:448: undefined reference to `(anonymous namespace)::D2::n_offset'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:448: undefined reference to `(anonymous namespace)::D2::n_offset'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:448: undefined reference to `(anonymous namespace)::D2::n_offset'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:448: undefined reference to `(anonymous namespace)::D2::n_offset'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o:/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:448: more undefined references to `(anonymous namespace)::D2::n_offset' follow<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::Side_On_Bnd((anonymous namespace)::D2::element const*, int)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:572: undefined reference to `(anonymous namespace)::D2::side_offset'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::Edges_Of_Elem((anonymous namespace)::D2::element const*)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:587: undefined reference to `(anonymous namespace)::D2::element_descriptors'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::Corners_Of_Elem((anonymous namespace)::D2::element const*)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:594: undefined reference to `(anonymous namespace)::D2::element_descriptors'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::Corner((anonymous namespace)::D2::element const*, int)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:943: undefined reference to `(anonymous namespace)::D2::n_offset'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UG_NS<2>::GetEdge((anonymous namespace)::D2::node*, (anonymous namespace)::D2::node*)':<br>/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/ugwrapper.hh:958: undefined reference to `(anonymous namespace)::D2::GetEdge((anonymous namespace)::D2::node const*, (anonymous namespace)::D2::node const*)'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UGGridLeafIterator<0, (Dune::PartitionIteratorType)4, Dune::UGGrid<2> const>::globalIncrement()':<br>/home/amir/dune-2.7/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*)'<br>/usr/bin/ld: /home/amir/dune-2.7/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*)'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o: in function `Dune::UGGridLeafIterator<0, (Dune::PartitionIteratorType)1, Dune::UGGrid<2> const>::globalIncrement()':<br>/home/amir/dune-2.7/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*)'<br>/usr/bin/ld: /home/amir/dune-2.7/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:178: undefined reference to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2> const*)'<br>/usr/bin/ld: 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&)':<br>/home/amir/dune-2.7/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*)'<br>/usr/bin/ld: CMakeFiles/hydrateDG-Ex1.dir/hydrateDG-Ex1.cc.o:/home/amir/dune-2.7/dune-grid/dune/grid/uggrid/uggridleafiterator.hh:73: more undefined references to `Dune::UGGridEntity<0, 2, Dune::UGGrid<2> const>::setToTarget((anonymous namespace)::D2::element*, Dune::UGGrid<2> const*)' follow<br>collect2: error: ld returned 1 exit status<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I think there is a linking problem with uggrid, but I don't know how exactly I can fix it. The reason that I send the warnings because they basically are saying there is something that is not defined, e.g., </div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">"declared ‘static’ but never defined"<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">So please tell me what else can I do?</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Thank you</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Amir</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 16, 2020 at 2:14 PM Dominic Kempf <<a href="mailto:dominic.r.kempf@gmail.com">dominic.r.kempf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear Amir,</div><div><br></div><div>Warnings are non-critical. Depending on your compiler flags, UGGrid might throw warnings. If you also get errors, you could post these and we might be able to help how to get rid of them. The code snippet you were posting looks fine.</div><div><br></div><div>Best,</div><div>Dominic<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 16, 2020 at 12:33 PM Amir Peiraviminaei <<a href="mailto:apminaei@gmail.com" target="_blank">apminaei@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi Carsten,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I did rebuild my own module as you said, still getting errors as the first one for both master and 2.7 release branches. This is the grid that I want to create:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-size:14px;line-height:19px;white-space:pre-wrap"><div><div style="line-height:19px"><div><span style="color:rgb(86,156,214)">typedef</span> <span style="color:rgb(78,201,176)">Dune</span>::UGGrid<dim> Grid;</div></div></div><div><span style="color:rgb(86,156,214)">auto</span> <span style="color:rgb(156,220,254)">ll</span> = <span style="color:rgb(78,201,176)">Dune</span>::FieldVector<<span style="color:rgb(78,201,176)">Grid</span>::ctype, <span style="color:rgb(156,220,254)">dim</span>>{{<span style="color:rgb(181,206,168)">0</span>, <span style="color:rgb(181,206,168)">0</span>}};</div><div> <span style="color:rgb(86,156,214)">auto</span> <span style="color:rgb(156,220,254)">ur</span> = <span style="color:rgb(78,201,176)">Dune</span>::FieldVector<<span style="color:rgb(78,201,176)">Grid</span>::ctype, <span style="color:rgb(156,220,254)">dim</span>>{{<span style="color:rgb(156,220,254)">L</span>[<span style="color:rgb(181,206,168)">0</span>], <span style="color:rgb(156,220,254)">L</span>[<span style="color:rgb(181,206,168)">1</span>]}};</div><div> <span style="color:rgb(78,201,176)">std</span>::<span style="color:rgb(78,201,176)">array</span><<span style="color:rgb(86,156,214)">unsigned</span> <span style="color:rgb(86,156,214)">int</span>, <span style="color:rgb(156,220,254)">dim</span>> <span style="color:rgb(156,220,254)">elements</span>;</div><div> <span style="color:rgb(156,220,254)">elements</span><span style="color:rgb(220,220,170)">[</span><span style="color:rgb(181,206,168)">0</span><span style="color:rgb(220,220,170)">]</span> = <span style="color:rgb(156,220,254)">N</span><span style="color:rgb(220,220,170)">[</span><span style="color:rgb(181,206,168)">0</span><span style="color:rgb(220,220,170)">]</span>;</div><div> <span style="color:rgb(156,220,254)">elements</span><span style="color:rgb(220,220,170)">[</span><span style="color:rgb(181,206,168)">1</span><span style="color:rgb(220,220,170)">]</span> = <span style="color:rgb(156,220,254)">N</span><span style="color:rgb(220,220,170)">[</span><span style="color:rgb(181,206,168)">1</span><span style="color:rgb(220,220,170)">]</span>; </div><div> <span style="color:rgb(78,201,176)">std</span>::shared_ptr<Grid> grid = <span style="color:rgb(78,201,176)">Dune</span>::<span style="color:rgb(78,201,176)">StructuredGridFactory</span><<span style="color:rgb(78,201,176)">Grid</span>>::<span style="color:rgb(220,220,170)">createCubeGrid</span>(<span style="color:rgb(156,220,254)">ll</span>, <span style="color:rgb(156,220,254)">ur</span>, <span style="color:rgb(156,220,254)">elements</span>);</div><br><div> <span style="color:rgb(86,156,214)">typedef</span> <span style="color:rgb(78,201,176)">Grid</span>::LeafGridView GV;</div><div> GV gv = <span style="color:rgb(156,220,254)">grid</span>-><span style="color:rgb(220,220,170)">leafGridView</span>();</div><div> <span style="color:rgb(156,220,254)">grid</span>-><span style="color:rgb(220,220,170)">loadBalance</span>();</div></div></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">this is the warning messages that I get:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">In file included from /... /dune-uggrid/dune/uggrid/domain/domain.h:60:0,<br> from /home/peiravim/dune/dune-uggrid/dune/uggrid/gm/gm.h:58,<br> from /home/peiravim/dune/dune-grid/dune/grid/uggrid/ugincludes.hh:16,<br> from /home/peiravim/dune/dune-grid/dune/grid/uggrid.hh:57,<br> from /home/peiravim/dune/Hydrate-DG/dune/Hydrate-DG/IncludesDUNE.hh:36,<br> from /home/peiravim/dune/Hydrate-DG/src/hydrateDG-Ex1.cc:20:<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h: At global scope:<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:127:14: warning: ‘{anonymous}::HEAP* {anonymous}::NewHeap({anonymous}::HeapType, {anonymous}::MEM, void*)’ declared ‘static’ but never defined [-Wunused-function]<br> HEAP *NewHeap (enum HeapType type, MEM size, void *buffer);<br> ^~~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:128:14: warning: ‘void {anonymous}::DisposeHeap({anonymous}::HEAP*)’ declared ‘static’ but never defined [-Wunused-function]<br> void DisposeHeap (HEAP *theHeap);<br> ^~~~~~~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:130:14: warning: ‘void* {anonymous}::GetMem({anonymous}::HEAP*, {anonymous}::MEM)’ declared ‘static’ but never defined [-Wunused-function]<br> void *GetMem (HEAP *theHeap, MEM n);<br> ^~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:131:14: warning: ‘void* {anonymous}::GetFreelistMemory({anonymous}::HEAP*, {anonymous}::INT)’ declared ‘static’ but never defined [-Wunused-function]<br> void *GetFreelistMemory (HEAP *theHeap, INT size);<br> ^~~~~~~~~~~~~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:132:14: warning: ‘void {anonymous}::DisposeMem({anonymous}::HEAP*, void*)’ declared ‘static’ but never defined [-Wunused-function]<br> void DisposeMem (HEAP *theHeap, void *buffer);<br> ^~~~~~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:134:14: warning: ‘{anonymous}::INT {anonymous}::MarkTmpMem({anonymous}::HEAP*, {anonymous}::INT*)’ declared ‘static’ but never defined [-Wunused-function]<br> INT MarkTmpMem (HEAP *theHeap, INT *key);<br> ^~~~~~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:135:14: warning: ‘void* {anonymous}::GetTmpMem({anonymous}::HEAP*, {anonymous}::MEM, {anonymous}::INT)’ declared ‘static’ but never defined [-Wunused-function]<br> void *GetTmpMem (HEAP *theHeap, MEM n, INT key);<br> ^~~~~~~~~<br>/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h:136:14: warning: ‘{anonymous}::INT {anonymous}::ReleaseTmpMem({anonymous}::HEAP*, {anonymous}::INT)’ declared ‘static’ but never defined [-Wunused-function]<br> INT ReleaseTmpMem (HEAP *theHeap, INT key);</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">There are more warnings, all about uggrid.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Thank you.</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Amir</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div></div>
_______________________________________________<br>
dune-pdelab mailing list<br>
<a href="mailto:dune-pdelab@lists.dune-project.org" target="_blank">dune-pdelab@lists.dune-project.org</a><br>
<a href="https://lists.dune-project.org/mailman/listinfo/dune-pdelab" rel="noreferrer" target="_blank">https://lists.dune-project.org/mailman/listinfo/dune-pdelab</a></blockquote></div>
</blockquote></div>