[dune-fem] Problem when compile the tutorial of fem-1.3.1 on fem-1.4

Tobias Malkmus tomalk at mathematik.uni-freiburg.de
Mon Aug 4 08:28:40 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Xiang

The tutorial version 1.3.1 will not work with fem-1.4, use instead the
new tutorial:
http://dune.mathematik.uni-freiburg.de/downloads/dune-fem-howto-1.4.tar.gz

Best Tobias

On 08/01/2014 09:51 PM, Xiang Yu wrote:
> hi, i am Xiang from University of Dundee.
> 
> 
> Recently, i was confused by the tutorial of fem-1.4. In this
> tutorial, it does not use the classes of Matrix anyone and use
> Ellipticoperator instead of Laplaceoperator. Therefore, when i
> complied the tutorial of stokes, it showed that  "error: no type
> named ?BaseFunctionSetType?".
> 
> 
> Then i did find that the tutorial of heat equation did not use the
> BaseFunctionSetType in fem-1.4.
> 
> 
> Can you give me any suggestion?
> 
> 
> Problem detail:
> 
> 
> In file included from algorithm.hh:113:0, from
> main.cc<http://main.cc/>:45: laplaceoperator.hh: In instantiation
> of ?class
> Dune::LaplaceFEOp<Dune::Fem::AdaptiveDiscreteFunction<Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage> >,
> Dune::Fem::SparseRowMatrixTraits<Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage>,
> Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage> > >?: algorithm.hh:317:25:   required
> from ?void Algorithm<GridImp, velocityPolynomialOrder,
> pressurePolynomialOrder,
> GridPartImp>::operator()(Algorithm<GridImp,
> velocityPolynomialOrder, pressurePolynomialOrder,
> GridPartImp>::DiscreteVelocityFunctionType&) [with GridImp =
> Dune::ALUGrid<3, 3, (Dune::ALUGridElementType)0u,
> (Dune::ALUGridRefinementType)1u>; int velocityPolynomialOrder = 2;
> int pressurePolynomialOrder = 1; GridPartImp =
> Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >;
> Algorithm<GridImp, velocityPolynomialOrder,
> pressurePolynomialOrder, GridPartImp>::DiscreteVelocityFunctionType
> =
> Dune::Fem::AdaptiveDiscreteFunction<Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage> >]? 
> ../../dune/fem-howto/base.hh:90:16:   required from ?void
> compute(Algorithm&) [with Algorithm = Algorithm<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u>, 2,
> 1>]? main.cc<http://main.cc/>:99:22:   required from here 
> laplaceoperator.hh:61:7: error: no type named ?BaseFunctionSetType?
> in?Dune::LaplaceFEOp<Dune::Fem::AdaptiveDiscreteFunction<Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage> >,
> Dune::Fem::SparseRowMatrixTraits<Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage>,
> Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage> > >::DiscreteFunctionSpaceType {aka
> class
> Dune::Fem::LagrangeDiscreteFunctionSpace<Dune::Fem::FunctionSpace<double,
> double, 3, 3>, Dune::Fem::LeafGridPart<Dune::ALUGrid<3, 3,
> (Dune::ALUGridElementType)0u, (Dune::ALUGridRefinementType)1u> >,
> 2, Dune::Fem::CachingStorage>}? BaseFunctionSetType; ^
> 
> 
> Sincerely,
> 
> Xiang.
> 
> The University of Dundee is a registered Scottish Charity, No:
> SC015096
> 
> 
> 
> _______________________________________________ dune-fem mailing
> list dune-fem at dune-project.org 
> http://lists.dune-project.org/mailman/listinfo/dune-fem
> 


- -- 
Tobias Malkmus                 <tomalk at mathematik.uni-freiburg.de>

Mathematisches Institut               Tel: +49 761 203 5627
Abt. für Angewandte Mathematik        Universität Freiburg
Hermann-Herder-Str. 10
79104 Freiburg

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJT3ygYAAoJEBMY7DHvcWNgUSkH/RKaTqqFvbFTn2LbZ2RoyPId
AAK+DemCI2WKvdP7tgZjvB5xkTfI+dOHWQ7XMXRrTxI+x5jg6bErZkyjY3hLDR3R
FuYV7KmpUTAYq7NTq2imxlqXRu9ue+nWbVnkWxmE1B5sWRjct25fRAGESr9kSqmF
+mU2lKFiYLU5LQo8i2Y6ND8zW8xtgn42Us2NdiTKA+uqSepkPlXgG163FcyWkmE9
X0R/GBOqGkdSnO9ITQnCvxgmLEVmgVxINv5nGbcTj33ZnhqFlqzhYzccOpiBy+nf
aF5zh9yB6E98l+45zL8eJb1KwuAB7TCDzmewChYdUE3861n+I62TlWtljnoaY1E=
=TY4N
-----END PGP SIGNATURE-----




More information about the dune-fem mailing list