[dune-pdelab] dune-pdelab Digest, Vol 118, Issue 5

Dominic Kempf dominic.r.kempf at gmail.com
Wed Sep 16 14:13:53 CEST 2020


Dear Amir,

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.

Best,
Dominic

On Wed, Sep 16, 2020 at 12:33 PM Amir Peiraviminaei <apminaei at gmail.com>
wrote:

> 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
>
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune-pdelab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20200916/34739bad/attachment.htm>


More information about the dune-pdelab mailing list