[dune-functions] More build failures

Steffen Müthing steffen.muething at iwr.uni-heidelberg.de
Thu Sep 17 11:38:55 CEST 2015


Hi Oliver,

> Am 17.09.2015 um 10:55 schrieb Oliver Sander <oliver.sander at tu-dresden.de>:
> 
> Hi guys,
> I still can't build the stokes-taylorhood example, neither with gcc-4.9.3 nor with clang-3.4.
> Here is what clang has to say.  Any help would be appreciated.
> Best,
> Oliver

oh good, those child() member functions really are a nightmare to get right…

I built in a check to make sure they aren’t used incorrectly after your bug report for PDELab,
but that check was a little over-eager and failed in other case. I hope it’s finally all working
now…

Best,
Steffen

> 
> /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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune-functions/attachments/20150917/064b0987/attachment.sig>


More information about the dune-functions mailing list