[Dune] AluCube grid in 2d?

Matteo Semplice matteo.semplice at guest.unimi.it
Thu Nov 24 17:13:42 CET 2011


Hi.
Does the error reported below point to some mistake in my library 
setup/compilation or is it the intended behaviour (i.e. dune cannot 
handle ALUCube grid in 2d?)

So, I downloaded ALUGrid-1.23 , configured it with
	./configure --prefix=/home/matteo/ 
--includedir=/home/matteo/include/alugrid
and installed with "make all" and "make install". No errors were reported.

Then I downloaded dune-common, grid, istl and grid-howto, and 
configured, compiled, installed with dunecontrol.opts

PKG_CONFIG_PATH="/home/matteo/lib/pkgconfig"
CONFIGURE_FLAGS="--enable-parallel 
--with-alugrid=/home/matteo/ALUGrid-1.23 --prefix=$HOME"
(There is no newline in the definition of CONFIGURE_FLAGS in the actual 
file)

Both the previously compiled alugrid libraries and the alberta libraries 
already in my system were found. Again, I noticed no errors.

Then, I moved to the dune-grid-2.1.0 directory and tried to recompile 
adaptivefinitevolume with GRIDTYPE set to ALUGRID_SIMPLEX and 
ALUGRID_CONFORM, as suggested in the grid-howto. They compile and run 
correctly.

Next I tried ALUGRID_CUBE and got the following error.
I noticed that the error mentions dune/grid/alugrid/2d/alugrid.hh, 
dune/grid/alugrid.hh and lugrid/3d/capabilities.hh... is this ok?

Thanks for any tip...

	Matteo

==========
matteo at montebianco:~/dune2.1/dune-grid-howto-2.1.0$ make GRIDDIM=2 
GRIDTYPE=ALUGRID_CUBE adaptivefinitevolume
g++ -std=c++0x -DHAVE_CONFIG_H -I. 
-I/home/matteo/dune2.1/dune-common-2.1.0 
-I/home/matteo/dune2.1/dune-grid-2.1.0 
-I/home/matteo/dune2.1/dune-istl-2.1.0 -I. -I/usr/include 
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread 
-DMPIPP_H -DENABLE_MPI=1 -I/usr/include 
-I/home/matteo/dune2.1/dune-common-2.1.0 
-I/home/matteo/dune2.1/dune-grid-2.1.0 
-I/home/matteo/dune2.1/dune-istl-2.1.0   -I/usr/lib/openmpi/include 
-I/usr/lib/openmpi/include/openmpi -pthread -DMPIPP_H -DENABLE_MPI=1 
-I/home/matteo/dune2.1/dune-common-2.1.0 -DGRIDDIM=2 -DWORLDDIM=2 
-DALUGRID_CUBE -I/usr/include/alberta -DALBERTA_DIM=2 -DENABLE_ALBERTA 
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread 
-DMPIPP_H -DENABLE_MPI=1 -I/home/matteo/include/alugrid 
-I/home/matteo/include/alugrid/serial 
-I/home/matteo/include/alugrid/duneinterface -DENABLE_ALUGRID 
-I/home/matteo/include/alugrid/parallel -I/usr/include -DENABLE_GMP=1 
-I/home/matteo/dune2.1/dune-grid-2.1.0 -I/usr/include/superlu 
-DENABLE_SUPERLU -I/home/matteo/dune2.1/dune-istl-2.1.0 -g -O2 -MT 
adaptivefinitevolume-adaptivefinitevolume.o -MD -MP -MF 
.deps/adaptivefinitevolume-adaptivefinitevolume.Tpo -c -o 
adaptivefinitevolume-adaptivefinitevolume.o `test -f 
'adaptivefinitevolume.cc' || echo './'`adaptivefinitevolume.cc
In file included from 
/home/matteo/dune2.1/dune-grid-2.1.0/dune/grid/alugrid/2d/alugrid.hh:8,
                  from 
/home/matteo/dune2.1/dune-grid-2.1.0/dune/grid/alugrid.hh:11,
                  from config.h:457,
                  from adaptivefinitevolume.cc:1:
/home/matteo/dune2.1/dune-grid-2.1.0/dune/grid/alugrid/2d/grid.hh: In 
instantiation of ‘Dune::ALU2dGrid<2, 2, (ALUGridSpace::ElementType)1u>’:
/home/matteo/dune2.1/dune-grid-2.1.0/dune/grid/alugrid/3d/capabilities.hh:21: 
   instantiated from ‘Dune::ALUCubeGrid<2, 2>’
adaptivefinitevolume.cc:104:   instantiated from here
/home/matteo/dune2.1/dune-grid-2.1.0/dune/grid/alugrid/2d/grid.hh:192: 
error: static assertion failed: "ALU2dGrid only implemented for triangles."
make: *** [adaptivefinitevolume-adaptivefinitevolume.o] Error 1
===============




More information about the Dune mailing list