[Dune] Finite volume tutorial

Mauro Pagani account.facile at hotmail.it
Thu Sep 27 11:54:10 CEST 2012




From: account.facile at hotmail.it
To: dune at dune-project.org
Subject: Problem with the installation
Date: Mon, 7 May 2012 12:00:40 +0200





Hi, I contact you for a problem about the implementation of the finite volume tutorial in DUNE-FEM-Howto. After the dunecontrol command (without errors), I try to do the command "make finitevolume" and the terminal shows me:

___________________________________________________________________________
[root at maurofedora finitevolume]# make finitevolume
g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../..  -I/home/mauro/Scaricati/dune-common  -I/home/mauro/Scaricati/dune-grid  -I/home/mauro/Scaricati/dune-istl  -I/home/mauro/Scaricati/dune-fem-1.2.1    -I/home/mauro/Scaricati/dune-common -DGRIDDIM=2 -DWORLDDIM=2 -DALUGRID_SIMPLEX  -I/home/mauro/Scaricati/dune-grid  -I/home/mauro/Scaricati/dune-istl -I/home/mauro/Scaricati/dune-fem-1.2.1 -DPROBLEM=1 -I/home/mauro/Scaricati/dune-common -I/home/mauro/Scaricati/dune-grid -I/home/mauro/Scaricati/dune-istl -I/home/mauro/Scaricati/dune-fem-1.2.1  -g -O2 -Wall -MT finitevolume.o -MD -MP -MF .deps/finitevolume.Tpo -c -o finitevolume.o finitevolume.cc
In file included from finitevolume.cc:2:0:
../../config.h:529:15: error: ‘ALUSimplexGrid’ in namespace ‘Dune’ does not name a type
finitevolume.cc: In function ‘int main(int, char**)’:
finitevolume.cc:368:13: error: ‘GridType’ in namespace ‘Dune::GridSelector’ does not name a type
finitevolume.cc:377:20: error: ‘GridType’ was not declared in this scope
finitevolume.cc:377:29: error: template argument 1 is invalid
finitevolume.cc:378:7: error: invalid type in declaration before ‘=’ token
finitevolume.cc:378:21: error: the value of ‘GridType’ is not usable in a constant expression
finitevolume.cc:377:20: note: ‘GridType’ was not declared ‘constexpr’
finitevolume.cc:378:56: error: no matching function for call to ‘initialize(const char [21])’
finitevolume.cc:378:56: note: candidate is:
../../dune/fem-howto/base.hh:29:28: note: template<class HGridType> Dune::GridPtr<HGridType> initialize(const string&)
finitevolume.cc:379:15: error: ‘grid’ was not declared in this scope
finitevolume.cc:379:23: error: invalid type argument of unary ‘*’ (have ‘int’)
finitevolume.cc:383:14: error: the value of ‘GridType’ is not usable in a constant expression
finitevolume.cc:377:20: note: ‘GridType’ was not declared ‘constexpr’
finitevolume.cc:383:23: error: template argument 1 is invalid
finitevolume.cc:383:32: error: invalid type in declaration before ‘(’ token
In file included from ../../dune/fem-howto/baseevolution.hh:4:0,
                 from finitevolume.cc:17:
../../dune/fem-howto/base.hh: In function ‘void compute(Algorithm&) [with Algorithm = int]’:
finitevolume.cc:384:20:   instantiated from here
../../dune/fem-howto/base.hh:60:52: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:61:42: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:62:37: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:63:54: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:76:48: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:77:52: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:87:5: error: ‘algorithm’ cannot be used as a function
../../dune/fem-howto/base.hh:98:5: error: request for member ‘finalize’ in ‘algorithm’, which is of non-class type ‘int’
../../dune/fem-howto/base.hh:62:37: error: ‘int’ is not a class, struct, or union type
../../dune/fem-howto/base.hh:112:7: error: ‘int’ is not a class, struct, or union type
make: *** [finitevolume.o] Errore 1

___________________________________________________________________________________________________________________________________

And that's a little strange, because the other tutorials go without any problems. I don't modify any files, so I don't know why this problem arise.

Could you help me?..thank you very much.

Mauro Pagani


 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120927/f34ba576/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: finitevolume.cc
Type: text/x-c++src
Size: 14974 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120927/f34ba576/attachment.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: problem.hh
Type: text/x-c++hdr
Size: 2801 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20120927/f34ba576/attachment.hh>


More information about the Dune mailing list