[dune-functions] More build failures

Carsten Gräser graeser at mi.fu-berlin.de
Thu Sep 17 11:19:04 CEST 2015


Hi,
I really should start following the typetree development.

Am 17.09.2015 um 10:55 schrieb Oliver Sander:
> Hi guys,
> I still can't build the stokes-taylorhood example, neither with gcc-4.9.3 nor with clang-3.4.
I suppose it's not a 'still', but an 'again'. The example did build
again after Steffens fixes. But after updating typetree it again failed.
For the moment try going back to rev a709073 of typetree. This worked
for me.

@Steffen: Maybe it helps that the breakage has happened after a709073.

Best,
Carsten

> Here is what clang has to say.  Any help would be appreciated.
> Best,
> Oliver
> 
> /home/sander/dune/dune-functions/examples/stokes-taylorhood.cc:241:35: warning: suggest braces around initialization of subobject [-Wmissing-braces]
>   std::array<int,dim> elements = {4, 4};
>                                   ^~~~
>                                   {   }
> In file included from /home/sander/dune/dune-functions/examples/stokes-taylorhood.cc:22:
> In file included from /home/sander/dune/dune-functions/dune/functions/functionspacebases/pqknodalbasis.hh:14:
> In file included from /home/sander/dune/dune-functions/dune/functions/functionspacebases/gridviewfunctionspacebasis.hh:7:
> In file included from /home/sander/dune/dune-functions/dune/functions/functionspacebases/nodes.hh:6:
> /home/sander/dune/dune-typetree/dune/typetree/compositenode.hh:195:43: error: no matching function for call to 'treePathSize'
>         static_assert(sizeof...(I) > 0 || treePathSize(i0) > 0,
>                                           ^~~~~~~~~~~~
> /home/sander/dune/dune-functions/dune/functions/functionspacebases/taylorhoodbasis.hh:232:32: note: in instantiation of function template specialization
> 'Dune::TypeTree::CompositeNode<Dune::Functions::TaylorHoodVelocityTree<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >, 4> >, unsigned
> long, Dune::TypeTree::HybridTreePath<std::integral_constant<unsigned long, 0> > >, Dune::Functions::PQkNode<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2,
> Dune::EquidistantCoordinates<double, 2> >, 4> >, 1, unsigned long, Dune::TypeTree::HybridTreePath<std::integral_constant<unsigned long, 1> > > >::child<std::integral_constant<unsigned long, 0>, int>'
> requested here
>     pq2NodeIndexSet_.bind(node.child(_0, 0));
>                                ^
> /home/sander/dune/dune-functions/dune/functions/functionspacebases/defaultlocalindexset.hh:41:19: note: in instantiation of member function
> 'Dune::Functions::TaylorHoodNodeIndexSet<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >, 4> >, std::array<unsigned long, 2>,
> Dune::TypeTree::HybridTreePath<>, unsigned long>::bind' requested here
>     nodeIndexSet_.bind(localView_->tree());
>                   ^
> /home/sander/dune/dune-functions/examples/stokes-taylorhood.cc:199:19: note: in instantiation of member function
> 'Dune::Functions::DefaultLocalIndexSet<Dune::Functions::DefaultLocalView<Dune::Functions::DefaultGlobalBasis<Dune::Functions::TaylorHoodNodeFactory<Dune::GridView<Dune::DefaultLeafGridViewTraits<const
> Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >, 4> >, std::array<unsigned long, 2>, unsigned long> > >,
> Dune::Functions::TaylorHoodNodeIndexSet<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >, 4> >, std::array<unsigned long, 2>,
> Dune::TypeTree::HybridTreePath<>, unsigned long> >::bind' requested here
>     localIndexSet.bind(localView);
>                   ^
> /home/sander/dune/dune-functions/examples/stokes-taylorhood.cc:277:3: note: in instantiation of function template specialization
> 'assembleStokesProblem<Dune::Functions::DefaultGlobalBasis<Dune::Functions::TaylorHoodNodeFactory<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2,
> Dune::EquidistantCoordinates<double, 2> >, 4> >, std::array<unsigned long, 2>, unsigned long> > >' requested here
>   assembleStokesProblem(taylorHoodBasis, stiffnessMatrix);
>   ^
> /home/sander/dune/dune-typetree/dune/typetree/treepath.hh:45:27: note: candidate template ignored: could not match 'TreePath' against 'integral_constant'
>     constexpr std::size_t treePathSize(const TreePath<i...>&)
>                           ^
> /home/sander/dune/dune-typetree/dune/typetree/treepath.hh:372:27: note: candidate template ignored: could not match 'HybridTreePath' against 'integral_constant'
>     constexpr std::size_t treePathSize(const HybridTreePath<T...>&)
>                           ^
> /home/sander/dune/dune-functions/examples/stokes-taylorhood.cc:47:55: error: no matching member function for call to 'child'
>   auto& velocityLocalFiniteElement = localView.tree().child(_0,0).finiteElement();
> 
> 
> _______________________________________________
> dune-functions mailing list
> dune-functions at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-functions
> 


-- 
Prof. Dr. Carsten Gräser
Freie Universität Berlin
Institut für Mathematik
Arnimallee 6
14195 Berlin, Germany
phone: +49 30 838 72637
fax  : +49 30 838 472637
email: graeser at mi.fu-berlin.de
URL  : http://page.mi.fu-berlin.de/graeser

-------------- 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-functions/attachments/20150917/2726649e/attachment.sig>


More information about the dune-functions mailing list