<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi guys, <div class="">I’m an absolute beginner with the dune library. I’m trying to install on my mac, following the instructions on the website and on the pdf recently uploaded by Oliver Sander (“Getting started with DUNE"). I had no problem installing the basic modules (common, grid, islt, geometry, localfunctions, alugrid, fem), but in the first example on the pdf by Oliver Sander it calls some features of the dune-functions module and I’m now facing some problem with that. I downloaded the 2.4 compatible release from <a href="https://gitlab.dune-project.org/staging/dune-functions/tree/releases/2.4-compatible" class="">https://gitlab.dune-project.org/staging/dune-functions/tree/releases/2.4-compatible</a> and the dune-typetree module and I run, as usual, ./dune-common/bin/dunecontrol all. During compiling it stops with an error:</div><div class=""><br class=""></div><div class=""><div class="">-- Build files have been written to: /Applications/DUNE/dune-functions/build-cmake</div><div class="">--- calling make for dune-functions ---</div><div class="">build directory: build-cmake</div><div class="">cmake --build . -- </div><div class="">[ 33%] Built target poisson-pq2</div><div class="">[ 50%] Building CXX object examples/CMakeFiles/stokes-taylorhood.dir/stokes-taylorhood.cc.o</div><div class="">In file included from /Applications/DUNE/dune-functions/examples/<a href="http://stokes-taylorhood.cc" class="">stokes-taylorhood.cc</a>:5:</div><div class="">In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:265:</div><div class="">In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__bit_reference:15:</div><div class="">In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:627:</div><div class="">In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/utility:157:</div><div class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__tuple:187:5: error: </div><div class="">      static_assert failed "tuple_element index out of range"</div><div class="">    static_assert(_Ip != 0, "tuple_element index out of range");</div><div class="">    ^             ~~~~~~~~</div><div class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/tuple:154:22: note: </div><div class="">      in instantiation of template class 'std::__1::tuple_element<0,</div><div class="">      std::__1::__tuple_types<> >' requested here</div><div class="">    typedef typename tuple_element<_Ip, __tuple_types<_Tp...> >::type type;</div><div class="">                     ^</div><div class="">/Applications/DUNE/dune-functions/dune/common/typeutilities.hh:31:43: note: in</div><div class="">      instantiation of template class 'std::__1::tuple_element<0,</div><div class="">      std::__1::tuple<> >' requested here</div><div class="">    (not(std::is_same<This, typename std::tuple_element<0, std::tuple<ty...</div><div class="">                                          ^</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/powerbasis.hh:92:50: note: </div><div class="">      in instantiation of template type alias 'disableCopyMove' requested here</div><div class="">    disableCopyMove<PowerNodeFactory, SFArgs...> = 0,</div><div class="">                                                 ^</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/powerbasis.hh:94:3: note: </div><div class="">      while substituting prior template arguments into non-type template</div><div class="">      parameter [with SFArgs = <>]</div><div class="">  PowerNodeFactory(SFArgs&&... sfArgs) :</div><div class="">  ^~~~~~~~~~~~~~~~</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/powerbasis.hh:50:7: note: </div><div class="">      while substituting deduced template arguments into function template</div><div class="">      'PowerNodeFactory' [with SFArgs = <>, $1 = (no value), $2 = (no value)]</div><div class="">class PowerNodeFactory</div><div class="">      ^</div><div class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:2652:14: note: </div><div class="">      (skipping 6 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see</div><div class="">      all)</div><div class="">    : public is_constructible<_Tp></div><div class="">             ^</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/compositebasis.hh:113:57: note: </div><div class="">      in instantiation of template type alias 'enableIfConstructible' requested</div><div class="">      here</div><div class="">    enableIfConstructible<std::tuple<SF...>, SFArgs...> = 0></div><div class="">                                                        ^</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/compositebasis.hh:114:3: note: </div><div class="">      while substituting prior template arguments into non-type template</div><div class="">      parameter [with SFArgs =</div><div class="">      <Dune::Functions::PowerNodeFactory<Dune::ReservedVector<unsigned long, 2>,</div><div class="">      Dune::Functions::BasisTags::InterleafedIndex,</div><div class="">      Dune::Functions::PQkNodeFactory<Dune::GridView<Dune::DefaultLeafGridViewTraits<const</div><div class="">      Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >,</div><div class="">      Dune::PartitionIteratorType::All_Partition> >, 2,</div><div class="">      Dune::ReservedVector<unsigned long, 2>, unsigned long>, 2>,</div><div class="">      Dune::Functions::PQkNodeFactory<Dune::GridView<Dune::DefaultLeafGridViewTraits<const</div><div class="">      Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >,</div><div class="">      Dune::PartitionIteratorType::All_Partition> >, 1,</div><div class="">      Dune::ReservedVector<unsigned long, 2>, unsigned long>>, $1 = 0]</div><div class="">  CompositeNodeFactory(SFArgs&&... sfArgs) :</div><div class="">  ^~~~~~~~~~~~~~~~~~~~</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/compositebasis.hh:402:12: note: </div><div class="">      while substituting deduced template arguments into function template</div><div class="">      'CompositeNodeFactory' [with SFArgs =</div><div class="">      <Dune::Functions::PowerNodeFactory<Dune::ReservedVector<unsigned long, 2>,</div><div class="">      Dune::Functions::BasisTags::InterleafedIndex,</div><div class="">      Dune::Functions::PQkNodeFactory<Dune::GridView<Dune::DefaultLeafGridViewTraits<const</div><div class="">      Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >,</div><div class="">      Dune::PartitionIteratorType::All_Partition> >, 2,</div><div class="">      Dune::ReservedVector<unsigned long, 2>, unsigned long>, 2>,</div><div class="">      Dune::Functions::PQkNodeFactory<Dune::GridView<Dune::DefaultLeafGridViewTraits<const</div><div class="">      Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >,</div><div class="">      Dune::PartitionIteratorType::All_Partition> >, 1,</div><div class="">      Dune::ReservedVector<unsigned long, 2>, unsigned long>>, $1 = (no value),</div><div class="">      $2 = (no value)]</div><div class="">    return {SubFactoryTags().template build<MultiIndex, GridView, size_t...</div><div class="">           ^</div><div class="">/Applications/DUNE/dune-functions/dune/functions/functionspacebases/defaultglobalbasis.hh:122:31: note: </div><div class="">      in instantiation of function template specialization</div><div class="">      'Dune::Functions::BasisBuilder::Imp::CompositeNodeFactoryBuilder<Dune::Functions::BasisTags::BlockedIndex,</div><div class="">      Dune::Functions::BasisBuilder::Imp::PowerNodeFactoryBuilder<2,</div><div class="">      Dune::Functions::BasisTags::InterleafedIndex,</div><div class="">      Dune::Functions::BasisBuilder::Imp::PQkNodeFactoryBuilder<2> >,</div><div class="">      Dune::Functions::BasisBuilder::Imp::PQkNodeFactoryBuilder<1></div><div class="">      >::build<Dune::ReservedVector<unsigned long, 2>,</div><div class="">      Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2,</div><div class="">      Dune::EquidistantCoordinates<double, 2> >,</div><div class="">      Dune::PartitionIteratorType::All_Partition> >, unsigned long>' requested</div><div class="">      here</div><div class="">  return {factoryTag.template build<MultiIndex>(gridView)};</div><div class="">                              ^</div><div class="">/Applications/DUNE/dune-functions/examples/<a href="http://stokes-taylorhood.cc" class="">stokes-taylorhood.cc</a>:282:26: note: </div><div class="">      in instantiation of function template specialization</div><div class="">      'Dune::Functions::BasisBuilder::makeBasis<Dune::GridView<Dune::DefaultLeafGridViewTraits<const</div><div class="">      Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2> >,</div><div class="">      Dune::PartitionIteratorType::All_Partition> >,</div><div class="">      Dune::Functions::BasisBuilder::Imp::CompositeNodeFactoryBuilder<Dune::Functions::BasisTags::BlockedIndex,</div><div class="">      Dune::Functions::BasisBuilder::Imp::PowerNodeFactoryBuilder<2,</div><div class="">      Dune::Functions::BasisTags::InterleafedIndex,</div><div class="">      Dune::Functions::BasisBuilder::Imp::PQkNodeFactoryBuilder<2> >,</div><div class="">      Dune::Functions::BasisBuilder::Imp::PQkNodeFactoryBuilder<1> >, unsigned</div><div class="">      long>' requested here</div><div class="">  auto taylorHoodBasis = makeBasis(</div><div class="">                         ^</div><div class="">1 error generated.</div><div class="">make[2]: *** [examples/CMakeFiles/stokes-taylorhood.dir/stokes-taylorhood.cc.o] Error 1</div><div class="">make[1]: *** [examples/CMakeFiles/stokes-taylorhood.dir/all] Error 2</div><div class="">make: *** [all] Error 2</div><div class="">--- Failed to build dune-functions ---</div><div class="">Terminating dunecontrol due to previous errors!</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Someone can help here?</div><div class=""><br class=""></div><div class="">Thank you in advance,</div><div class="">Francesco</div></body></html>
<br>
<div style="font-size:small;font-family:arial;background-color:rgb(255,255,255)">______________________________<wbr>_____________</div><div style="font-size:small;font-family:arial;background-color:rgb(255,255,255)"><span style="font-size:x-small;font-family:Arial,sans-serif;line-height:14pt">INVESTI SUL FUTURO, FAI CRESCERE L’UNIVERSITÀ:</span></div><div style="color:rgb(34,34,34);font-family:arial;background-color:rgb(255,255,255)"><p style="font-size:13px;line-height:14pt"><span style="font-family:Arial,sans-serif"><font size="1" color="#660000"><b>DONA IL 5 PER MILLE ALLA SAPIENZA</b></font></span></p><p style="color:rgb(0,0,0);line-height:14pt"><span style="font-family:Arial,sans-serif"><font size="2">CODICE FISCALE</font><font size="4"> </font><b style="font-size:large">80209930587</b></span></p></div>