<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">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>