[dune-pdelab] [dune-functions] [dune-pdelab-commit] [branch] dune-pdelab - 'feature/new-functions-interface' updated
Christian Engwer
christian.engwer at uni-muenster.de
Thu Apr 16 01:18:43 CEST 2015
Hi Oli, thanks, it seems I have some un-pushed changes in typetree...
I'll look at this (but not tonight)
Christian
On Wed, Apr 15, 2015 at 04:26:27PM +0200, Oliver Sander wrote:
> Hi Christian,
>
> > I have a running prototype implementation of a discrete function
> > implementing the envisioned dune-functions function interface.
> > Currently it only works for GFS leaf nodes and I doubt it would work
> > for non-scalar spaces.
> >
> > I also implemented the general interpolate which allows to interpolate
> > a solution vector from dune-functions functions + some code to use
> > trees. This allows to do things like:
> > Dune::PDELab::interpolate(
> > [](const Domain& x) {return x[0];},
> > p0gfs,x);
> >
> > Please feel free to test ;-)
> >
>
> I wanted to give this a try and compiled one of the pdelab test programs
> from the book (without changing anything, hoping that your changes are
> backward compatible). I get the following compiler output. Any idea?
>
> Best,
> Oliver
>
>
> Scanning dependencies of target pdelab-linear-reaction-diffusion-dirichlet
> [100%] Building CXX object src/CMakeFiles/pdelab-linear-reaction-diffusion-dirichlet.dir/pdelab-linear-reaction-diffusion-dirichlet.cc.o
> In file included from /home/sander/dune-book/code/dune-pdelab/dune/pdelab/gridfunctionspace/interpolate.hh:20:0,
> from /home/sander/dune-book/code/dune-book-examples/src/pdelab-linear-reaction-diffusion-dirichlet.cc:32:
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:22:6: warning: #warning we should make this a free function [-Wcpp]
> #warning we should make this a free function
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:76:6: warning: #warning we should make this a free function [-Wcpp]
> #warning we should make this a free function
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:121:18: error: ‘has_node_tag’ is not a member of ‘Dune::TypeTree’
> not(TypeTree::has_node_tag<typename std::decay<F>::type>::value), int>::type = 0>
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:121:70: error: ‘::value’ has not been declared
> not(TypeTree::has_node_tag<typename std::decay<F>::type>::value), int>::type = 0>
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:117:26: error: parse error in template argument list
> typename std::enable_if<
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:121:91: error: expected unqualified-id before ‘=’ token
> not(TypeTree::has_node_tag<typename std::decay<F>::type>::value), int>::type = 0>
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:135:14: error: ‘IsCallable’ is not a member of ‘Dune::Functions’
> Functions::IsCallable<F>::value
> ^
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:135:14: error: ‘IsCallable’ is not a member of ‘Dune::Functions’
> /home/sander/dune-book/code/dune-pdelab/dune/pdelab/function/localfunction.hh:135:37: error: template argument 1 is invalid
> Functions::IsCallable<F>::value
>
>
>
>
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-pdelab
--
Prof. Dr. Christian Engwer
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster
E-Mail christian.engwer at uni-muenster.de
Telefon +49 251 83-35067
FAX +49 251 83-32729
More information about the dune-pdelab
mailing list