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