[dune-pdelab] [dune-functions] [dune-pdelab-commit] [branch] dune-pdelab - 'feature/new-functions-interface' updated
Oliver Sander
sander at igpm.rwth-aachen.de
Wed Apr 15 16:26:27 CEST 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20150415/37e39da7/attachment.sig>
More information about the dune-pdelab
mailing list