[Dune] Troubles in installation of DUNE/DUNE-fem
Konstantinos Blazakis
K.Blazakis at sussex.ac.uk
Fri Nov 4 17:02:31 CET 2011
Hi,
I am a new user of DUNE and DUNE-FEM. I attended last June ,the summer school in Warwick for DUNE /DUNE-FEM.
I am a phd student at the University of Sussex-UK .
Two weeks ago , Dr Andreas Dedner visited Sussex for a seminar and I asked to come from my office.
So he installed the Dune -core modules in my school computer and it's working.
Now , I am trying to start with DUNE-FEM and I have some problems with DUNE-FEM. When I am trying to run a code from DUNE-FEM-howto I have these error msgs:
kb263 at sarbu:~/DUNE/dune-fem-howto-1.2.0/tutorial/poisson$ make main
g++ main.cc -o main
main.cc:40:20: error: config.h: No such file or directory
In file included from main.cc:43:
algorithm.hh:40:34: error: dune/common/version.hh: No such file or directory
algorithm.hh:47:37: error: dune/common/stdstreams.hh: No such file or directory
algorithm.hh:48:32: error: dune/common/timer.hh: No such file or directory
algorithm.hh:54:41: error: dune/fem/gridpart/gridpart.hh: No such file or directory
algorithm.hh:55:53: error: dune/fem/gridpart/adaptiveleafgridpart.hh: No such file or directory
algorithm.hh:58:49: error: dune/fem/space/common/adaptmanager.hh: No such file or directory
algorithm.hh:60:43: error: dune/fem/space/lagrangespace.hh: No such file or directory
algorithm.hh:63:49: error: dune/fem/function/adaptivefunction.hh: No such file or directory
algorithm.hh:64:52: error: dune/fem/function/blockvectorfunction.hh: No such file or directory
algorithm.hh:65:47: error: dune/fem/function/vectorfunction.hh: No such file or directory
algorithm.hh:67:52: error: dune/fem/operator/discreteoperatorimp.hh: No such file or directory
algorithm.hh:70:48: error: dune/fem/operator/matrix/spmatrix.hh: No such file or directory
algorithm.hh:71:51: error: dune/fem/operator/matrix/blockmatrix.hh: No such file or directory
algorithm.hh:72:54: error: dune/fem/operator/matrix/ontheflymatrix.hh: No such file or directory
algorithm.hh:73:50: error: dune/fem/operator/matrix/istlmatrix.hh: No such file or directory
algorithm.hh:76:47: error: dune/fem/solver/inverseoperators.hh: No such file or directory
algorithm.hh:77:50: error: dune/fem/solver/oemsolver/oemsolver.hh: No such file or directory
algorithm.hh:78:41: error: dune/fem/solver/istlsolver.hh: No such file or directory
algorithm.hh:81:35: error: dune/fem/misc/l2norm.hh: No such file or directory
algorithm.hh:82:35: error: dune/fem/misc/h1norm.hh: No such file or directory
algorithm.hh:85:36: error: dune/fem/io/parameter.hh: No such file or directory
algorithm.hh:88:42: error: dune/fem/io/file/datawriter.hh: No such file or directory
algorithm.hh:90:35: error: dune/fem/misc/femeoc.hh: No such file or directory
In file included from algorithm.hh:96,
from main.cc:43:
laplaceoperator.hh:5:34: error: dune/common/fmatrix.hh: No such file or directory
laplaceoperator.hh:8:37: error: dune/fem/storage/array.hh: No such file or directory
laplaceoperator.hh:9:45: error: dune/fem/quadrature/quadrature.hh: No such file or directory
laplaceoperator.hh:10:54: error: dune/fem/function/common/scalarproducts.hh: No such file or directory
laplaceoperator.hh:11:48: error: dune/fem/operator/common/operator.hh: No such file or directory
laplaceoperator.hh:12:59: error: dune/fem/operator/2order/lagrangematrixsetup.hh: No such file or directory
laplaceoperator.hh:15:47: error: dune/fem-howto/probleminterfaces.hh: No such file or directory
In file included from main.cc:46:
problemdata.hh:7:32: error: dune/common/array.hh: No such file or directory
main.cc:49:39: error: dune/fem/misc/mpimanager.hh: No such file or directory
main.cc:57:34: error: dune/fem-howto/base.hh: No such file or directory
In file included from algorithm.hh:96,
from main.cc:43:
laplaceoperator.hh:23: error: expected template-name before ‘<’ token
laplaceoperator.hh:23: error: expected `{' before ‘<’ token
laplaceoperator.hh:23: error: expected unqualified-id before ‘<’ token
In file included from algorithm.hh:97,
from main.cc:43:
functional.hh:49: error: ISO C++ forbids declaration of ‘vector’ with no type
functional.hh:49: error: invalid use of ‘::’
functional.hh:49: error: expected ‘;’ before ‘<’ token
functional.hh: In constructor ‘Dune::IntegralFunctional<Function, DiscreteFunction>::IntegralFunctional(const Function&)’:
functional.hh:54: error: class ‘Dune::IntegralFunctional<Function, DiscreteFunction>’ does not have any field named ‘functionValues_’
functional.hh: In member function ‘typename Function::RangeFieldType Dune::IntegralFunctional<Function, DiscreteFunction>::operator()(const DiscreteFunction&) const’:
functional.hh:63: error: ‘TemporaryLocalFunction’ is not a member of ‘Dune’
functional.hh:63: error: expected primary-expression before ‘>’ token
functional.hh:81: error: ‘localFunctional’ was not declared in this scope
functional.hh: In member function ‘void Dune::IntegralFunctional<Function, DiscreteFunction>::applyLocal(LocalFunctionType&, int) const’:
functional.hh:104: error: expected initializer before ‘<’ token
functional.hh:112: error: ‘QuadratureType’ was not declared in this scope
functional.hh:112: error: expected `;' before ‘quadrature’
functional.hh:113: error: ‘quadrature’ was not declared in this scope
functional.hh:114: error: ‘functionValues_’ was not declared in this scope
functional.hh: In member function ‘void Dune::AssembledFunctional<Functional>::assemble(DiscreteFunctionType&, int) const’:
functional.hh:175: error: ‘TemporaryLocalFunction’ is not a member of ‘Dune’
functional.hh:175: error: expected primary-expression before ‘>’ token
functional.hh:187: error: ‘localFunctional’ was not declared in this scope
In file included from algorithm.hh:98,
from main.cc:43:
dirichletconstraints.hh: At global scope:
dirichletconstraints.hh:24: error: ISO C++ forbids declaration of ‘SlaveDofs’ with no type
dirichletconstraints.hh:24: error: expected ‘;’ before ‘<’ token
dirichletconstraints.hh:25: error: ‘SlaveDofsType’ has not been declared
dirichletconstraints.hh:26: error: ISO C++ forbids declaration of ‘SingletonList’ with no type
dirichletconstraints.hh:26: error: expected ‘;’ before ‘<’ token
dirichletconstraints.hh:248: error: ISO C++ forbids declaration of ‘SlaveDofsType’ with no type
dirichletconstraints.hh:248: error: expected ‘;’ before ‘*’ token
dirichletconstraints.hh:251: error: ISO C++ forbids declaration of ‘SlaveDofsType’ with no type
dirichletconstraints.hh:251: error: expected ‘;’ before ‘*’ token
dirichletconstraints.hh:258: error: expected `;' before ‘SlaveDofsType’
dirichletconstraints.hh:258: error: ISO C++ forbids declaration of ‘SlaveDofsType’ with no type
dirichletconstraints.hh:258: error: expected ‘;’ before ‘&’ token
dirichletconstraints.hh:264: error: expected `;' before ‘}’ token
dirichletconstraints.hh: In constructor ‘Dune::DirichletConstraints<DiscreteFunctionSpace, ProblemType>::DirichletConstraints(const DiscreteFunctionSpace&, const ProblemType&)’:
dirichletconstraints.hh:33: error: class ‘Dune::DirichletConstraints<DiscreteFunctionSpace, ProblemType>’ does not have any field named ‘slaveDofs_’
dirichletconstraints.hh: In member function ‘void Dune::DirichletConstraints<DiscreteFunctionSpace, ProblemType>::boundaryCorrectOnEntity(LinearOperator&, const ProblemType&, const EntityType&) const’:
dirichletconstraints.hh:93: error: ‘SlaveDofsType’ was not declared in this scope
dirichletconstraints.hh:93: error: ‘slaveDofs’ was not declared in this scope
In file included from algorithm.hh:99,
from main.cc:43:
neumannconstraints.hh: In member function ‘void Dune::NeumannConstraints<DiscreteFunctionSpace, ProblemType>::apply(LinearOperator&, DiscreteFunctionType&, DiscreteFunctionType&) const’:
neumannconstraints.hh:33: error: expected initializer before ‘<’ token
neumannconstraints.hh:37: error: ‘GridExactSolutionType’ was not declared in this scope
neumannconstraints.hh:37: error: expected `;' before ‘ugrid’
neumannconstraints.hh:43: error: ‘ugrid’ was not declared in this scope
neumannconstraints.hh: In member function ‘void Dune::NeumannConstraints<DiscreteFunctionSpace, ProblemType>::setExactMeanValue(const GridFunctionType&, DiscreteFunctionType&) const’:
neumannconstraints.hh:86: error: expected initializer before ‘<’ token
neumannconstraints.hh:87: error: ‘QuadratureType’ was not declared in this scope
neumannconstraints.hh:87: error: expected `;' before ‘quadrature’
neumannconstraints.hh:88: error: ‘quadrature’ was not declared in this scope
In file included from main.cc:43:
algorithm.hh: At global scope:
algorithm.hh:106: error: expected type-specifier
algorithm.hh:106: error: expected ‘>’
algorithm.hh:125: error: ISO C++ forbids declaration of ‘FunctionSpace’ with no type
algorithm.hh:125: error: typedef name may not be a nested-name-specifier
algorithm.hh:125: error: expected ‘;’ before ‘<’ token
algorithm.hh:128: error: ISO C++ forbids declaration of ‘ProblemInterface’ with no type
algorithm.hh:128: error: typedef name may not be a nested-name-specifier
algorithm.hh:128: error: expected ‘;’ before ‘<’ token
algorithm.hh:132: error: ‘ProblemType’ has not been declared
algorithm.hh:135: error: ISO C++ forbids declaration of ‘GridFunctionAdapter’ with no type
algorithm.hh:135: error: typedef name may not be a nested-name-specifier
algorithm.hh:135: error: expected ‘;’ before ‘<’ token
algorithm.hh:140: error: ISO C++ forbids declaration of ‘LagrangeDiscreteFunctionSpace’ with no type
algorithm.hh:140: error: typedef name may not be a nested-name-specifier
algorithm.hh:141: error: expected ‘;’ before ‘<’ token
algorithm.hh:147: error: ISO C++ forbids declaration of ‘AdaptiveDiscreteFunction’ with no type
algorithm.hh:147: error: typedef name may not be a nested-name-specifier
algorithm.hh:147: error: expected ‘;’ before ‘<’ token
algorithm.hh:155: error: ISO C++ forbids declaration of ‘SparseRowMatrixTraits’ with no type
algorithm.hh:155: error: typedef name may not be a nested-name-specifier
algorithm.hh:155: error: expected ‘;’ before ‘<’ token
algorithm.hh:163: error: ‘DiscreteFunctionType’ was not declared in this scope
algorithm.hh:163: error: ‘MatrixObjectTraits’ was not declared in this scope
algorithm.hh:163: error: template argument 1 is invalid
algorithm.hh:163: error: template argument 2 is invalid
algorithm.hh:169: error: ISO C++ forbids declaration of ‘CGInverseOp’ with no type
algorithm.hh:169: error: typedef name may not be a nested-name-specifier
algorithm.hh:169: error: expected ‘;’ before ‘<’ token
algorithm.hh:182: error: expected ‘,’ or ‘...’ before ‘&’ token
algorithm.hh:182: error: ISO C++ forbids declaration of ‘ProblemType’ with no type
algorithm.hh:202: error: ‘DiscreteFunctionType’ has not been declared
algorithm.hh:234: error: ‘DiscreteFunctionType’ has not been declared
algorithm.hh:263: error: ISO C++ forbids declaration of ‘DiscreteSpaceType’ with no type
algorithm.hh:263: error: expected ‘;’ before ‘&’ token
algorithm.hh:265: error: expected `;' before ‘private’
algorithm.hh:272: error: ‘DiscreteFunctionType’ has not been declared
algorithm.hh:318: error: ‘DiscreteSpaceType’ does not name a type
algorithm.hh:319: error: ISO C++ forbids declaration of ‘ProblemType’ with no type
algorithm.hh:319: error: expected ‘;’ before ‘&’ token
algorithm.hh: In constructor ‘Algorithm<GridImp, polynomialOrder, GridPartImp>::Algorithm(GridImp&, int)’:
algorithm.hh:185: error: class ‘Algorithm<GridImp, polynomialOrder, GridPartImp>’ does not have any field named ‘space_’
algorithm.hh:186: error: class ‘Algorithm<GridImp, polynomialOrder, GridPartImp>’ does not have any field named ‘problem_’
algorithm.hh:186: error: ‘problem’ was not declared in this scope
algorithm.hh:189: error: ‘vector’ is not a member of ‘std’
algorithm.hh:189: error: expected primary-expression before ‘>’ token
algorithm.hh:189: error: ‘femEocHeaders’ was not declared in this scope
algorithm.hh:195: error: ‘Dune::FemEoc’ has not been declared
algorithm.hh: In member function ‘void Algorithm<GridImp, polynomialOrder, GridPartImp>::operator()(int&)’:
algorithm.hh:205: error: ‘Dune::Parameter’ has not been declared
algorithm.hh:207: error: ‘space_’ was not declared in this scope
algorithm.hh:209: error: ‘DiscreteSpaceType’ has not been declared
algorithm.hh:214: error: request for member ‘clear’ in ‘solution’, which is of non-class type ‘int’
algorithm.hh:217: error: ‘space_’ was not declared in this scope
algorithm.hh:217: error: ‘problem_’ was not declared in this scope
algorithm.hh:220: error: ‘ProblemType’ was not declared in this scope
algorithm.hh:220: error: ‘DiscreteFunctionType’ was not declared in this scope
algorithm.hh:220: error: template argument 1 is invalid
algorithm.hh:220: error: template argument 2 is invalid
algorithm.hh:220: error: invalid type in declaration before ‘;’ token
algorithm.hh:223: error: ‘DiscreteSpaceType’ was not declared in this scope
algorithm.hh:223: error: ‘ProblemType’ cannot appear in a constant-expression
algorithm.hh:223: error: template argument 1 is invalid
algorithm.hh:223: error: template argument 2 is invalid
algorithm.hh:224: error: invalid type in declaration before ‘(’ token
algorithm.hh:226: error: ‘DiscreteSpaceType’ cannot appear in a constant-expression
algorithm.hh:226: error: ‘ProblemType’ cannot appear in a constant-expression
algorithm.hh:226: error: template argument 1 is invalid
algorithm.hh:226: error: template argument 2 is invalid
algorithm.hh:227: error: invalid type in declaration before ‘(’ token
algorithm.hh: In member function ‘void Algorithm<GridImp, polynomialOrder, GridPartImp>::finalize(int&)’:
algorithm.hh:237: error: ‘problem_’ was not declared in this scope
algorithm.hh:240: error: ‘GridExactSolutionType’ was not declared in this scope
algorithm.hh:240: error: expected `;' before ‘ugrid’
algorithm.hh:244: error: ‘L2Norm’ is not a member of ‘Dune’
algorithm.hh:244: error: expected primary-expression before ‘>’ token
algorithm.hh:246: error: ‘l2norm’ was not declared in this scope
algorithm.hh:246: error: ‘ugrid’ was not declared in this scope
algorithm.hh:249: error: ‘H1Norm’ is not a member of ‘Dune’
algorithm.hh:249: error: expected primary-expression before ‘>’ token
algorithm.hh:251: error: ‘h1norm’ was not declared in this scope
algorithm.hh:254: error: ‘vector’ is not a member of ‘std’
algorithm.hh:254: error: expected primary-expression before ‘double’
algorithm.hh:254: error: expected `;' before ‘double’
algorithm.hh:255: error: ‘errors’ was not declared in this scope
algorithm.hh:259: error: ‘Dune::FemEoc’ has not been declared
algorithm.hh: In member function ‘void Algorithm<GridImp, polynomialOrder, GridPartImp>::solve(int&, const FunctionalType&, int&, const Constraints&, const Neumann&)’:
algorithm.hh:277: error: ‘DiscreteFunctionType’ was not declared in this scope
algorithm.hh:277: error: expected `;' before ‘rhs’
algorithm.hh:280: error: ‘space_’ was not declared in this scope
algorithm.hh:281: error: ‘rhs’ was not declared in this scope
algorithm.hh:285: error: request for member ‘systemMatrix’ in ‘laplace’, which is of non-class type ‘int’
algorithm.hh:288: error: request for member ‘systemMatrix’ in ‘laplace’, which is of non-class type ‘int’
algorithm.hh:291: error: ‘Timer’ is not a member of ‘Dune’
algorithm.hh:291: error: expected `;' before ‘timer’
algorithm.hh:296: error: ‘Dune::Parameter’ has not been declared
algorithm.hh:299: error: ‘Dune::Parameter’ has not been declared
algorithm.hh:302: error: ‘InverseOperatorType’ was not declared in this scope
algorithm.hh:302: error: expected `;' before ‘cg’
algorithm.hh:305: error: there are no arguments to ‘cg’ that depend on a template parameter, so a declaration of ‘cg’ must be available
algorithm.hh:305: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
algorithm.hh:308: error: ‘timer’ was not declared in this scope
In file included from main.cc:46:
problemdata.hh: At global scope:
problemdata.hh:18: error: ISO C++ forbids declaration of ‘FunctionSpace’ with no type
problemdata.hh:18: error: expected ‘;’ before ‘<’ token
problemdata.hh:20: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:22: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:23: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:25: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:26: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:28: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:29: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh: In member function ‘void Dune::SinProduct<dim>::evaluate(const int&, int&) const’:
problemdata.hh:35: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::SinProduct<dim>::jacobian(const int&, int&) const’:
problemdata.hh:40: error: ‘array’ was not declared in this scope
problemdata.hh:40: error: expected primary-expression before ‘,’ token
problemdata.hh:40: error: ‘costbl’ was not declared in this scope
problemdata.hh:40: error: ‘sintbl’ was not declared in this scope
problemdata.hh:43: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:44: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:49: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:51: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::SinProduct<dim>::hessian(const int&, int&) const’:
problemdata.hh:57: error: ‘array’ was not declared in this scope
problemdata.hh:57: error: expected primary-expression before ‘,’ token
problemdata.hh:57: error: ‘costbl’ was not declared in this scope
problemdata.hh:57: error: ‘sintbl’ was not declared in this scope
problemdata.hh:60: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:61: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:70: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:72: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:76: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:78: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: At global scope:
problemdata.hh:91: error: ISO C++ forbids declaration of ‘FunctionSpace’ with no type
problemdata.hh:91: error: expected ‘;’ before ‘<’ token
problemdata.hh:93: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:95: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:96: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:97: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:98: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:99: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:100: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh: In member function ‘void Dune::CosProduct<dim>::evaluate(const int&, int&) const’:
problemdata.hh:107: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::CosProduct<dim>::jacobian(const int&, int&) const’:
problemdata.hh:113: error: ‘array’ was not declared in this scope
problemdata.hh:113: error: expected primary-expression before ‘,’ token
problemdata.hh:113: error: ‘costbl’ was not declared in this scope
problemdata.hh:113: error: ‘sintbl’ was not declared in this scope
problemdata.hh:116: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:117: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:122: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:124: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::CosProduct<dim>::hessian(const int&, int&) const’:
problemdata.hh:130: error: ‘array’ was not declared in this scope
problemdata.hh:130: error: expected primary-expression before ‘,’ token
problemdata.hh:130: error: ‘costbl’ was not declared in this scope
problemdata.hh:130: error: ‘sintbl’ was not declared in this scope
problemdata.hh:133: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:134: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:143: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:145: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:149: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:151: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: At global scope:
problemdata.hh:164: error: ISO C++ forbids declaration of ‘FunctionSpace’ with no type
problemdata.hh:164: error: expected ‘;’ before ‘<’ token
problemdata.hh:166: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:168: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:169: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:170: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:171: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:172: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:173: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh: In member function ‘void Dune::AlbertaSolution<dim>::jacobian(const int&, int&) const’:
problemdata.hh:188: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:190: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::AlbertaSolution<dim>::hessian(const int&, int&) const’:
problemdata.hh:198: error: ‘array’ was not declared in this scope
problemdata.hh:198: error: expected primary-expression before ‘,’ token
problemdata.hh:198: error: ‘dx’ was not declared in this scope
problemdata.hh:201: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:207: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:207: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:208: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:208: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: At global scope:
problemdata.hh:219: error: ISO C++ forbids declaration of ‘FunctionSpace’ with no type
problemdata.hh:219: error: expected ‘;’ before ‘<’ token
problemdata.hh:221: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:223: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:224: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:225: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:226: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:227: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh:228: error: ‘FunctionSpaceType’ has not been declared
problemdata.hh: In member function ‘void Dune::CornerSolution<dim>::evaluate(const int&, int&) const’:
problemdata.hh:233: error: request for member ‘two_norm’ in ‘x’, which is of non-class type ‘const int’
problemdata.hh:239: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:239: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:239: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::CornerSolution<dim>::jacobian(const int&, int&) const’:
problemdata.hh:256: error: request for member ‘two_norm’ in ‘x’, which is of non-class type ‘const int’
problemdata.hh:260: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:260: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:260: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:262: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:262: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:262: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:263: error: invalid types ‘int[int]’ for array subscript
problemdata.hh:263: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh:263: error: invalid types ‘const int[int]’ for array subscript
problemdata.hh: In member function ‘void Dune::CornerSolution<dim>::hessian(const int&, int&) const’:
problemdata.hh:292: error: invalid types ‘int[int]’ for array subscript
problemdata.hh: At global scope:
problemdata.hh:312: error: expected template-name before ‘<’ token
problemdata.hh:312: error: expected `{' before ‘<’ token
problemdata.hh:312: error: expected unqualified-id before ‘<’ token
problemdata.hh:428: error: expected template-name before ‘<’ token
problemdata.hh:428: error: expected `{' before ‘<’ token
problemdata.hh:428: error: expected unqualified-id before ‘<’ token
problemdata.hh:497: error: expected template-name before ‘<’ token
problemdata.hh:497: error: expected `{' before ‘<’ token
problemdata.hh:497: error: expected unqualified-id before ‘<’ token
problemdata.hh:604: error: expected initializer before ‘<’ token
problemdata.hh:619: error: expected initializer before ‘<’ token
main.cc:59: error: expected initializer before ‘<’ token
main.cc: In function ‘int main(int, char**)’:
main.cc:65: error: ‘Dune::GridSelector’ has not been declared
main.cc:65: error: expected initializer before ‘HGridType’
main.cc:68: error: ‘Dune::MPIManager’ has not been declared
main.cc:69: error: ‘Dune::MPIManager’ has not been declared
main.cc:74: error: ‘Dune::Parameter’ has not been declared
main.cc:77: error: ‘Dune::Parameter’ has not been declared
main.cc:80: error: ‘GridPtr’ is not a member of ‘Dune’
main.cc:80: error: ‘HGridType’ was not declared in this scope
main.cc:80: error: ‘gridptr’ was not declared in this scope
main.cc:80: error: ‘initialize’ was not declared in this scope
main.cc:83: error: ‘grid’ was not declared in this scope
main.cc:86: error: ‘ProblemType’ was not declared in this scope
main.cc:86: error: ‘problem’ was not declared in this scope
main.cc:86: error: ‘createProblem’ is not a member of ‘Dune’
main.cc:86: error: expected primary-expression before ‘)’ token
main.cc:90: error: ‘HGridType’ cannot appear in a constant-expression
main.cc:90: error: template argument 1 is invalid
main.cc:90: error: template argument 3 is invalid
main.cc:90: error: invalid type in declaration before ‘(’ token
main.cc:90: error: initializer expression list treated as compound expression
main.cc:92: error: ‘compute’ was not declared in this scope
main.cc:95: error: ‘Dune::Parameter’ has not been declared
main.cc:98: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
main.cc:102: error: expected unqualified-id before ‘&’ token
main.cc:102: error: expected `)' before ‘&’ token
main.cc:102: error: expected `{' before ‘&’ token
main.cc:102: error: ‘exception’ was not declared in this scope
main.cc:102: error: expected `;' before ‘)’ token
make: *** [main] Error 1
I need to say here that I did not change the config.opt
My file config.opts that I hae in my dune-fem-howto-1.2-0/doc/installation is like this:
# Standard flags, used as default
STDFLAGS="-O3 -Wall -DNDEBUG -funroll-loops -finline-functions"
# Optimizing flags
# The last option (-march=opteron) has to be adapted to your processor type
OPTIMFLAGS="$STDFLAGS -fomit-frame-pointer -ffast-math -mfpmath=sse -msse3 \
-march=opteron"
# Debugging flags
DEBUGFLAGS="-g -Wall"
# Paths to installed modules
# You have to adapt these paths if you are not part of the
# Section of Applied Mathematics in Freiburg!
MODDIR="/hosts/raid5/aragorn/dune/modules/$HOSTTYPE/"
MODULEFLAGS="--with-alberta=$MODDIR/alberta \
--with-alugrid=$MODDIR/alugrid \
--with-ug=$MODDIR/ug \
--x-includes=/usr/X11R6/include \
--x-libraries=/usr/X11R6/lib \
--with-grape=$MODDIR/grape"
# Choose the compiler
COMPILER_FLAGS="CXX=g++ CC=gcc"
# Choose CXXFLAGS from above ($STDFLAGS or $DEBUGFLAGS or $OPTIMFLAGS)
# Remove the option "--disable-documentation" if you want a local doxygen
# documentation (takes quite some time to build).
CONFIGURE_FLAGS="--disable-documentation --disable-parallel $COMPILER_FLAGS \
CXXFLAGS=\"$STDFLAGS\" $MODULEFLAGS"
MAKE_FLAGS=
Also , the config.opts file that I have in my DUNE directory is
CONFIGURE_FLAGS="--with-alugrid=/home/kb263/DUNE/ALUGrid-1.91 \
--enable-blas \
--disable-documentation \
CXXFLAGS=\"-O3 -DNDEBUG\" " .
Please , can you help me how I can run dune-fem or dune-fem howto?Need I change something in the config file?
Need I configure it again ?
In addition with the above ,I am trying to install the DUNE core modules in my laptop ( using ubuntu 11.10) but I have some errors.
( were working with ubuntu 10.10)
I extracted all the modules and I run
>dune-common-2.1.0/bin/dunecontrol all
I have the following msgs:
make[5]: Entering directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/common'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/common'
Making all in 2d
make[5]: Entering directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/2d'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/2d'
Making all in 3d
make[5]: Entering directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/3d'
/bin/bash ../../../../libtool --tag=CXX --mode=compile g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../../.. -I/home/koblaz/dune/dune-common-2.1.0 -I../../../.. -g -O2 -MT libalu3d_la-topology.lo -MD -MP -MF .deps/libalu3d_la-topology.Tpo -c -o libalu3d_la-topology.lo `test -f 'topology.cc' || echo './'`topology.cc
libtool: compile: g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../../.. -I/home/koblaz/dune/dune-common-2.1.0 -I../../../.. -g -O2 -MT libalu3d_la-topology.lo -MD -MP -MF .deps/libalu3d_la-topology.Tpo -c topology.cc -o libalu3d_la-topology.o
mv -f .deps/libalu3d_la-topology.Tpo .deps/libalu3d_la-topology.Plo
/bin/bash ../../../../libtool --tag=CXX --mode=link g++ -std=c++0x -g -O2 -o libalu3d.la libalu3d_la-topology.lo -L/home/koblaz/dune/dune-common-2.1.0/lib -ldunecommon -lm
libtool: link: ar cru .libs/libalu3d.a libalu3d_la-topology.o
libtool: link: ranlib .libs/libalu3d.a
libtool: link: ( cd ".libs" && rm -f "libalu3d.la" && ln -s "../libalu3d.la" "libalu3d.la" )
make[5]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/3d'
make[5]: Entering directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid'
/bin/bash ../../../libtool --tag=CXX --mode=link g++ -std=c++0x -g -O2 -o libalu.la 3d/libalu3d.la -L/home/koblaz/dune/dune-common-2.1.0/lib -ldunecommon -lm
libtool: link: (cd .libs/libalu.lax/libalu3d.a && ar x "/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid/3d/.libs/libalu3d.a")
libtool: link: ar cru .libs/libalu.a .libs/libalu.lax/libalu3d.a/libalu3d_la-topology.o
libtool: link: ranlib .libs/libalu.a
libtool: link: rm -fr .libs/libalu.lax
libtool: link: ( cd ".libs" && rm -f "libalu.la" && ln -s "../libalu.la" "libalu.la" )
make[5]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid'
make[4]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/alugrid'
Making all in onedgrid
make[4]: Entering directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/onedgrid'
/bin/bash ../../../libtool --tag=CXX --mode=compile g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../.. -I/home/koblaz/dune/dune-common-2.1.0 -I../../.. -g -O2 -MT onedgrid.lo -MD -MP -MF .deps/onedgrid.Tpo -c -o onedgrid.lo onedgrid.cc
libtool: compile: g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../.. -I/home/koblaz/dune/dune-common-2.1.0 -I../../.. -g -O2 -MT onedgrid.lo -MD -MP -MF .deps/onedgrid.Tpo -c onedgrid.cc -o onedgrid.o
In file included from /home/koblaz/dune/dune-common-2.1.0/dune/common/shared_ptr.hh:17:0,
from ../../../dune/grid/common/gridfactory.hh:15,
from ../onedgrid.hh:13,
from onedgrid.cc:3:
/home/koblaz/dune/dune-common-2.1.0/dune/common/nullptr.hh:27:1: error: expected ‘;’ after class definition
/home/koblaz/dune/dune-common-2.1.0/dune/common/nullptr.hh:27:1: error: qualifiers can only be specified for objects and functions
/home/koblaz/dune/dune-common-2.1.0/dune/common/nullptr.hh:27:3: error: expected unqualified-id before ‘nullptr’
make[4]: *** [onedgrid.lo] Error 1
make[4]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid/onedgrid'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune/grid'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0/dune'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/koblaz/dune/dune-grid-2.1.0'
make: *** [all] Error 2
--- Failed to build dune-grid ---
Terminating dunecontrol due to previous errors!
Please can you help me?
I am looking forward to hearing from you.
Thank you in advance.
Kind Regards,
Costas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20111104/42346ec0/attachment.htm>
More information about the Dune
mailing list