[dune-fem] How to use the tutorials?

Andreas Dedner A.S.Dedner at warwick.ac.uk
Wed Feb 15 16:24:09 CET 2012


Hi Jochen,

welcome to DUNE.

As far as I can make out you have not selected a grid manager. The 
problem is that in the dune-fem-tutorial we set a default manager
in the Makefile.am:
dune-fem-howto/tutorial/gettingstarted/Makefile.am:
   3 GRIDTYPE = YASPGRID
   4 GRIDDIM = 2
So we are by default using yaspgrid in 2d.
These defines are not part of the Makefile.am generated by the 
duneproject script.
So can solve this problem in 2 ways:
1) call make GRIDTYPE=YASPGRID GRIDDIM=2 ...
2) add the lines to the Makefile.am

Hope that helps
Andreas


On 15/02/12 15:16, Jochen Schütz wrote:
> Hi everyone,
>
> I'm Jochen and I have just started to check out Dune and Dune-Fem. I had
> no problems installing it, and I can also set up my own project (say I
> call it dune-tutorial1) with the (rather useless) standard file that (in
> my case) says
> Hello World! This is dune-tutorial1.
> This is a sequential program.
>
> However, when I try to change the source code in the file
> dune-tutorial1/src/dune-tutorial1.cc and replace it by eg.
> dune-fem-howto/tutorial/gettingstarted/gettingstarted.cc, I am not able
> to compile the code. I get a huge error message that I have put in the
> 'appendix' of this mail.
>
> I am absolutely new to Dune... I tried to do everything as it is
> described in the dune-fem-howto pdf. If you need any additional
> information that I did not provide here, please contact me!
>
> I very much appreciate your answers !!
>
> Best and thanks a lot, Jochen.
>
>
> make[1]: Entering directory
> `/home/data/schuetz/Code/Dune/dune-tutorial1/src'
> g++ -std=c++0x -DHAVE_CONFIG_H -I. -I..
> -I/home/data/schuetz/Code/Dune/dune-common-2.1.1
> -I/home/data/schuetz/Code/Dune/dune-grid-2.1.1
> -I/home/data/schuetz/Code/Dune/dune-istl-2.1.1
> -I/home/data/schuetz/Code/Dune/dune-fem-1.2.1
> -I/home/data/schuetz/Code/Dune/dune-fem-howto-1.2.0 -I/usr/include -g
> -O2 -MT dune_tutorial1-dune_tutorial1.o -MD -MP -MF
> .deps/dune_tutorial1-dune_tutorial1.Tpo -c -o
> dune_tutorial1-dune_tutorial1.o `test -f 'dune_tutorial1.cc' || echo
> './'`dune_tutorial1.cc
> dune_tutorial1.cc:45: error: ‘Dune::GridSelector’ has not been declared
> dune_tutorial1.cc:45: error: expected initializer before ‘HGridType’
> make[1]: *** [dune_tutorial1-dune_tutorial1.o] Error 1
> make[1]: Leaving directory
> `/home/data/schuetz/Code/Dune/dune-tutorial1/src'
> make: *** [all-recursive] Error 1
> schuetz at witwe-bolte:~/Code/Dune/dune-tutorial1/src> make
> make[1]: Entering directory
> `/home/data/schuetz/Code/Dune/dune-tutorial1/src'
> g++ -std=c++0x -DHAVE_CONFIG_H -I. -I..
> -I/home/data/schuetz/Code/Dune/dune-common-2.1.1
> -I/home/data/schuetz/Code/Dune/dune-grid-2.1.1
> -I/home/data/schuetz/Code/Dune/dune-istl-2.1.1
> -I/home/data/schuetz/Code/Dune/dune-fem-1.2.1
> -I/home/data/schuetz/Code/Dune/dune-fem-howto-1.2.0 -I/usr/include -g
> -O2 -MT dune_tutorial1-dune_tutorial1.o -MD -MP -MF
> .deps/dune_tutorial1-dune_tutorial1.Tpo -c -o
> dune_tutorial1-dune_tutorial1.o `test -f 'dune_tutorial1.cc' || echo
> './'`dune_tutorial1.cc
> dune_tutorial1.cc:46: error: ‘Dune::GridSelector’ has not been declared
> dune_tutorial1.cc:46: error: expected initializer before ‘HGridType’
> dune_tutorial1.cc:95: error: ‘HGridType’ was not declared in this scope
> dune_tutorial1.cc:95: error: template argument 1 is invalid
> dune_tutorial1.cc:96: error: ‘HGridType’ was not declared in this scope
> dune_tutorial1.cc:96: error: wrong number of template arguments (3,
> should be 4)
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/functionspace.hh:41:
> error: provided for ‘template<class DomainField, class RangeField, int
> dimD, int dimR> class Dune::FunctionSpace’
> dune_tutorial1.cc:102: error: expected ‘)’ before ‘&’ token
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:
> In instantiation of ‘Dune::LagrangeDiscreteFunctionSpaceTraits<int, int,
> 1u, Dune::CachingStorage>’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:119:
> instantiated from
> ‘Dune::DiscreteFunctionSpaceInterface<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:582:
> instantiated from
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:206:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:70:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:71:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:72:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:73:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:74:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:76:
> error: ‘dimRange’ is not a member of ‘int’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:79:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:80:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:82:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:85:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:
> In instantiation of ‘Dune::LagrangeDiscreteFunctionSpaceTraits<int, int,
> 1u, Dune::CachingStorage>’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:119:
> instantiated from
> ‘Dune::DiscreteFunctionSpaceInterface<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:582:
> instantiated from
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:206:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:88:
> error: no type named ‘Type’ in ‘struct Dune::ToLocalFunctionSpace<int, 0>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:104:
> error: no type named ‘Type’ in ‘struct Dune::ToLocalFunctionSpace<int, 0>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:107:
> error: no type named ‘Type’ in ‘struct Dune::ToLocalFunctionSpace<int, 0>’
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:42,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:
> In instantiation of
> ‘Dune::DiscreteFunctionSpaceInterface<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:582:
> instantiated from
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:206:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:119:
> error: base type ‘int’ fails to be a struct or class type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:148:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:150:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:156:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:158:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:196:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:316:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:326:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:356:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:377:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:388:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:442:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:
> In instantiation of
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:206:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:582:
> error: duplicate base type
> ‘Dune::DiscreteFunctionSpaceInterface<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’ invalid
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:
> In instantiation of
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:206:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:608:
> error: type
> ‘Dune::DiscreteFunctionSpaceInterface<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’ is not a base type for type
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/common/discretefunctionspace.hh:611:
> error: type
> ‘Dune::DiscreteFunctionSpaceInterface<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’ is not a base type for type
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:
> In instantiation of ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’:
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:206:
> error: duplicate base type
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’ invalid
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:239:
> error: ‘dimRange’ is not a member of ‘int’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:
> In instantiation of ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1,
> Dune::CachingStorage>’:
> dune_tutorial1.cc:106: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:331:
> error: type
> ‘Dune::DiscreteFunctionSpaceDefault<Dune::LagrangeDiscreteFunctionSpaceTraits<int,
> int, 1u, Dune::CachingStorage> >’ is not a base type for type
> ‘Dune::LagrangeDiscreteFunctionSpace<int, int, 1, Dune::CachingStorage>’
> dune_tutorial1.cc: In instantiation of ‘Function<int>’:
> dune_tutorial1.cc:107: instantiated from here
> dune_tutorial1.cc:65: error: ‘int’ is not a class, struct, or union type
> dune_tutorial1.cc:66: error: ‘int’ is not a class, struct, or union type
> dune_tutorial1.cc:67: error: ‘int’ is not a class, struct, or union type
> dune_tutorial1.cc:69: error: ‘int’ is not a class, struct, or union type
> dune_tutorial1.cc:76: error: ‘int’ is not a class, struct, or union type
> dune_tutorial1.cc:110: error: expected ‘)’ before ‘&’ token
> dune_tutorial1.cc: In function ‘int main(int, char**)’:
> dune_tutorial1.cc:162: error: ‘HGridType’ was not declared in this scope
> dune_tutorial1.cc:162: error: template argument 1 is invalid
> dune_tutorial1.cc:162: error: invalid type in declaration before ‘(’ token
> dune_tutorial1.cc:162: error: cannot convert ‘std::string’ to ‘int’ in
> initialization
> dune_tutorial1.cc:163: error: invalid type argument of ‘unary *’
> dune_tutorial1.cc:165: error: invalid type argument of ‘unary *’
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:50,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:
> At global scope:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:
> In instantiation of ‘Dune::LagrangeMapper<int, 1>’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/nonblockmapper.hh:103:
> instantiated from ‘Dune::NonBlockMapperTraits<Dune::LagrangeMapper<int,
> 1>, 0>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/dofmapper.hh:68:
> instantiated from
> ‘Dune::DofMapper<Dune::NonBlockMapperTraits<Dune::LagrangeMapper<int,
> 1>, 0> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/nonblockmapper.hh:117:
> instantiated from ‘Dune::NonBlockMapper<Dune::LagrangeMapper<int, 1>, 0>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:400:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<FunctionSpaceImp,
> GridPartImp, polOrder,
> BaseFunctionStorageImp>::~LagrangeDiscreteFunctionSpace() [with
> FunctionSpaceImp = int, GridPartImp = int, int polOrder = 1,
> BaseFunctionStorageImp = Dune::CachingStorage]’
> dune_tutorial1.cc:93: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:52:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:78:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:82:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:85:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:88:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:91:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:101:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:104:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:108:
> error: ‘int’ is not a class, struct, or union type
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:41,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/nonblockmapper.hh:
> In instantiation of
> ‘Dune::NonBlockMapperTraits<Dune::LagrangeMapper<int, 1>, 0>’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/dofmapper.hh:68:
> instantiated from
> ‘Dune::DofMapper<Dune::NonBlockMapperTraits<Dune::LagrangeMapper<int,
> 1>, 0> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/nonblockmapper.hh:117:
> instantiated from ‘Dune::NonBlockMapper<Dune::LagrangeMapper<int, 1>, 0>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:400:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<FunctionSpaceImp,
> GridPartImp, polOrder,
> BaseFunctionStorageImp>::~LagrangeDiscreteFunctionSpace() [with
> FunctionSpaceImp = int, GridPartImp = int, int polOrder = 1,
> BaseFunctionStorageImp = Dune::CachingStorage]’
> dune_tutorial1.cc:93: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/nonblockmapper.hh:103:
> error: no type named ‘Traits’ in ‘struct Dune::LagrangeMapper<int, 1>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/mapper/nonblockmapper.hh:106:
> error: no type named ‘Traits’ in ‘struct Dune::LagrangeMapper<int, 1>’
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/elementpointlist.hh:32,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:36,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:33,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:46,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:50,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/elementpointlistbase.hh:
> In instantiation of ‘Dune::ElementPointListBase<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:99:
> instantiated from ‘Dune::CachingPointList<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:693:
> instantiated from ‘Dune::LagrangePointSet<int, 1u>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:419:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<FunctionSpaceImp,
> GridPartImp, polOrder,
> BaseFunctionStorageImp>::~LagrangeDiscreteFunctionSpace() [with
> FunctionSpaceImp = int, GridPartImp = int, int polOrder = 1,
> BaseFunctionStorageImp = Dune::CachingStorage]’
> dune_tutorial1.cc:93: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/elementpointlistbase.hh:60:
> error: ‘int’ is not a class, struct, or union type
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:46,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:50,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:
> In instantiation of ‘Dune::LagrangePointSetTraits<int, 1u>’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/elementpointlistbase.hh:66:
> instantiated from ‘Dune::ElementPointListBase<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:99:
> instantiated from ‘Dune::CachingPointList<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:693:
> instantiated from ‘Dune::LagrangePointSet<int, 1u>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:419:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<FunctionSpaceImp,
> GridPartImp, polOrder,
> BaseFunctionStorageImp>::~LagrangeDiscreteFunctionSpace() [with
> FunctionSpaceImp = int, GridPartImp = int, int polOrder = 1,
> BaseFunctionStorageImp = Dune::CachingStorage]’
> dune_tutorial1.cc:93: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:340:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:343:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:346:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:378:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:381:
> error: ‘int’ is not a class, struct, or union type
> In file included from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:33,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/mapper.hh:46,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:50,
>
> from
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace.hh:29,
>
> from dune_tutorial1.cc:26:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:
> In instantiation of ‘Dune::CachingPointList<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >’:
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangepoints.hh:693:
> instantiated from ‘Dune::LagrangePointSet<int, 1u>’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/space/lagrangespace/lagrangespace.hh:419:
> instantiated from ‘Dune::LagrangeDiscreteFunctionSpace<FunctionSpaceImp,
> GridPartImp, polOrder,
> BaseFunctionStorageImp>::~LagrangeDiscreteFunctionSpace() [with
> FunctionSpaceImp = int, GridPartImp = int, int polOrder = 1,
> BaseFunctionStorageImp = Dune::CachingStorage]’
> dune_tutorial1.cc:93: instantiated from here
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:122:
> error: ‘int’ is not a class, struct, or union type
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:125:
> error: no members matching ‘Dune::ElementPointListBase<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >::quadImp’ in ‘class
> Dune::ElementPointListBase<int, 0, Dune::LagrangePointSetTraits<int, 1u> >’
> /home/data/schuetz/Code/Dune/dune-fem-1.2.1/dune/fem/quadrature/cachingpointlist.hh:128:
> error: no members matching ‘Dune::ElementPointListBase<int, 0,
> Dune::LagrangePointSetTraits<int, 1u> >::localPoint’ in ‘class
> Dune::ElementPointListBase<int, 0, Dune::LagrangePointSetTraits<int, 1u> >’
> make[1]: *** [dune_tutorial1-dune_tutorial1.o] Error 1
> make[1]: Leaving directory
> `/home/data/schuetz/Code/Dune/dune-tutorial1/src'
> make: *** [all-recursive] Error 1
>





More information about the dune-fem mailing list