[Dune] Grid compile error

Agnese, Marco m.agnese13 at imperial.ac.uk
Tue Jan 28 18:51:53 CET 2014


Hello,
when I compile my module I use the following option file:

PATH_MPI="$HOME/openmpi/openmpi-1.6.5-install"
PATH_ALBERTA="$HOME/alberta/alberta-3.0.0-rc7-install"
PATH_ALUGRID="$HOME/alugrid/ALUGrid-1.52-install-openmpi"
PATH_PARMETIS="$HOME/parmetis/parmetis-4.0.3-install-openmpi"
CONFIGURE_FLAGS="CXX=g++ --with-alberta=$PATH_ALBERTA --with-alugrid=$PATH_ALUGRID --with-metis=$PATH_PARMETIS --with-parmetis=$PATH_PARMETIS --enable-fieldvector-size-is-method --enable-parallel --enable-experimental-grid-extensions --disable-documentation"
OFLAGS0="-g -Wall -Wfatal-errors"
OPTIFLAGS="-O3 -funroll-loops -finline-functions -ffast-math -fomit-frame-pointer -msse3 -mfpmath=sse -Wall"

#MPICC=$PATH_MPI/bin/mpicc

The full output of the compilation is :

make[1]: ingresso nella directory "/home/ma2413/dune/dune-test/src"
g++ -std=c++0x -DHAVE_CONFIG_H -I. -I..  -I/home/ma2413/dune/dune-common-2.2.1 -I/home/ma2413/dune/dune-geometry-2.2.1 -I/home/ma2413/dune/dune-grid-2.2.1 -I/home/ma2413/openmpi/openmpi-1.6.5-install/include -pthread -DMPIPP_H -DENABLE_MPI=1    -I/home/ma2413/openmpi/openmpi-1.6.5-install/include -pthread -DMPIPP_H -DENABLE_MPI=1 -I/home/ma2413/alugrid/ALUGrid-1.52-install-openmpi/include -I/home/ma2413/alugrid/ALUGrid-1.52-install-openmpi/include/serial -I/home/ma2413/alugrid/ALUGrid-1.52-install-openmpi/include/duneinterface -DENABLE_ALUGRID -I/home/ma2413/alugrid/ALUGrid-1.52-install-openmpi/include/parallel   -g -O2 -Wall -MT dune_test-dune_test.o -MD -MP -MF .deps/dune_test-dune_test.Tpo -c -o dune_test-dune_test.o `test -f 'dune_test.cc' || echo './'`dune_test.cc
dune_test.cc: In function ‘int main(int, char**)’:
dune_test.cc:25:13: error: ‘AlbertaGrid’ in namespace ‘Dune’ does not name a type
     typedef Dune::AlbertaGrid<GRIDDIM,WORLDDIM> GridType;
             ^
make[1]: *** [dune_test-dune_test.o] Errore 1
make[1]: uscita dalla directory "/home/ma2413/dune/dune-test/src"
make: *** [all-recursive] Errore 1

And I haven't modify manually any makefile.am.
Thank you very much.
Cheers,
Marco
________________________________________
From: Dedner, Andreas [A.S.Dedner at warwick.ac.uk]
Sent: Tuesday, January 28, 2014 5:20 PM
To: Agnese, Marco; dune at dune-project.org
Subject: Re: [Dune] Grid compile error

Hallo.
Whuch cxxflags are you using? Did you add the ones for alberta un the makefile.am?

As said already many times: include as much information as possible e.g the full output of the compilation and the config.log of your module.
Andreas
Best
Andreas




Sent from Samsung Mobile

"Agnese, Marco" <m.agnese13 at imperial.ac.uk> wrote:
Hello DUNEers,
I am getting mad trying to understand this problem.

If I try to compile this test code

#define GRIDDIM 2
#define WORLDDIM 2

#include <config.h>
#include <dune/grid/albertagrid.hh>

int main(int argc,char **argv){

   #if defined HAVE_ALBERTA
    typedef Dune::AlbertaGrid<GRIDDIM,WORLDDIM> GridType;
   #endif

    return 0;
}

I obtain the following error:
error: ‘AlbertaGrid’ in namespace ‘Dune’ does not name a type
     typedef Dune::AlbertaGrid<GRIDDIM,WORLDDIM> GridType;

I have already try many different things but nothing worked. Any idea is well accepted:)
Thank you very much,

Marco Agnese


_______________________________________________
Dune mailing list
Dune at dune-project.org
http://lists.dune-project.org/mailman/listinfo/dune



More information about the Dune mailing list