[dune-pdelab] dune-pdelab Digest, Vol 118, Issue 5
Amir Peiraviminaei
apminaei at gmail.com
Wed Sep 16 12:32:44 CEST 2020
Hi Carsten,
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:
typedef Dune::UGGrid<dim> Grid;
auto ll = Dune::FieldVector<Grid::ctype, dim>{{0, 0}};
auto ur = Dune::FieldVector<Grid::ctype, dim>{{L[0], L[1]}};
std::array<unsigned int, dim> elements;
elements[0] = N[0];
elements[1] = N[1];
std::shared_ptr<Grid> grid = Dune::StructuredGridFactory<Grid>::
createCubeGrid(ll, ur, elements);
typedef Grid::LeafGridView GV;
GV gv = grid->leafGridView();
grid->loadBalance();
this is the warning messages that I get:
In file included from /... /dune-uggrid/dune/uggrid/domain/domain.h:60:0,
from
/home/peiravim/dune/dune-uggrid/dune/uggrid/gm/gm.h:58,
from
/home/peiravim/dune/dune-grid/dune/grid/uggrid/ugincludes.hh:16,
from /home/peiravim/dune/dune-grid/dune/grid/uggrid.hh:57,
from
/home/peiravim/dune/Hydrate-DG/dune/Hydrate-DG/IncludesDUNE.hh:36,
from
/home/peiravim/dune/Hydrate-DG/src/hydrateDG-Ex1.cc:20:
/home/peiravim/dune/dune-uggrid/dune/uggrid/low/heaps.h: At global scope:
/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]
HEAP *NewHeap (enum HeapType type, MEM size, void
*buffer);
^~~~~~~
/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]
void DisposeHeap (HEAP *theHeap);
^~~~~~~~~~~
/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]
void *GetMem (HEAP *theHeap, MEM n);
^~~~~~
/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]
void *GetFreelistMemory (HEAP *theHeap, INT size);
^~~~~~~~~~~~~~~~~
/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]
void DisposeMem (HEAP *theHeap, void *buffer);
^~~~~~~~~~
/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]
INT MarkTmpMem (HEAP *theHeap, INT *key);
^~~~~~~~~~
/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]
void *GetTmpMem (HEAP *theHeap, MEM n, INT key);
^~~~~~~~~
/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]
INT ReleaseTmpMem (HEAP *theHeap, INT key);
There are more warnings, all about uggrid.
Thank you.
Amir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20200916/950e5147/attachment.htm>
More information about the dune-pdelab
mailing list