[dune-functions] More build failures

Oliver Sander oliver.sander at tu-dresden.de
Thu Sep 17 10:55:06 CEST 2015


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

/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();





More information about the dune-functions mailing list