[Dune] gmsh mesh loading using dune-uggrid

Stary, Tomas T.Stary at exeter.ac.uk
Mon Apr 24 12:09:48 CEST 2017


Hi,

I would like to load a mesh created in gmsh program into dune using
dune-uggrid module. For that I have created a new project dependent on
dune-uggrid and included required header files to the project:

#include <dune/grid/uggrid.hh>
#include <dune/grid/common/gridfactory.hh>
#include <dune/grid/common/gridinfo.hh>

When I try to compile the code I get the following error:

/home/tom/Work/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh: In static member function 'static UG::DOUBLE Dune::UG_NS<2>::SurfaceElement(int, const DOUBLE (*)[2], const DOUBLE*)':
/home/tom/Work/dune/dune-grid/dune/grid/uggrid/ugwrapper.hh:876:11: error: 'SurfaceElement' is not a member of 'UG::D2'
       if (UG_NAMESPACE ::SurfaceElement(UG_DIM, nc, co_global, ip_local, &result))

I am using a Linux machine, the same configuration works fine with a
different version of uggrid on Mac.

Do you have any suggestions on how to get over this issue, please?

Many thanks,

Tomas




More information about the Dune mailing list