Skip to content
Snippets Groups Projects
  1. Nov 14, 2016
    • Andreas Dedner's avatar
      Merge branch 'feature/fix-call-MPIfinalize-onlyif-MPIInit-called' into 'master' · 9af12b69
      Andreas Dedner authored
      MPIHelper should only finalize MPI if it called init
      
      MPIHelper only calls MPI if it was not already called before MPIHelper is constructed. Finalize is however always called on destruction leading to
      problems with other packages calling init/finalize before/after MPIHelper
      is setup. Added a bool storing the information if MPIInit was called by the
      MPIHelper so that finalize is only called in that case.
      
      See merge request !58
      9af12b69
    • Christoph Grüninger's avatar
      Merge branch 'feature/deprecate_various_static_forloops' into 'master' · 4f193672
      Christoph Grüninger authored
      Deprecate ForLoop, ForEachValue and ForEachValuePair
      
      Deprecate `ForLoop`, `ForEachValue` and `ForEachValuePair` since they are only a useless wrapper around the generic `Hybrid::forEach`.
      
      See merge request !169
      4f193672
    • Marco Agnese's avatar
      deprecate ForLoop, ForEachValue and ForEachValuePair since they are only a... · dc69a72c
      Marco Agnese authored
      deprecate ForLoop, ForEachValue and ForEachValuePair since they are only a useless wrapper around the generic Hybrid::forEach
      dc69a72c
    • Christoph Grüninger's avatar
      Merge branch 'feature/tuplevector' into 'master' · 40752c75
      Christoph Grüninger authored
      Add the TupleVector class
      
      The `TupleVector` class is a multitype container without
      algebraic operations. It relates to `Dune::MultiTypeBlockVector`
      like `std::vector` relates to `Dune::BlockVector`. This is achived
      by augmenting `std::tuple` by the following:
      * `operator[]` for `Dune::index_constant` arguments
      * `static size()`
          
      You can now write code like this which will work for multitype
      and classic vector like containers:
      
      ```c++    
          using namespace Dune::Hybrid;
          forEach(integralRange(size(v)), [&](auto i) {
              v[i] = i;
          });
       ```
      
      Notice that `TupleVector` was already present as implementation detail
      of two tests in dune-common and that dune-functions and dune-solvers
      also both contained their own variants
      
      See merge request !134
      40752c75
  2. Nov 13, 2016
  3. Nov 08, 2016
  4. Nov 04, 2016
    • Carsten Gräser's avatar
      Merge branch 'feature/overloadset' into 'master' · cbc5dfe1
      Carsten Gräser authored
      Add overload() and orderedOverload()
      
      These helper functions allow to create overload sets from lambdas.
      E.g. one can merge to lambdas for different argument types into
      one overload set in order to easily implement type-specific behaviour
      when looping over a tuple.
      
      While the result of overload(f1, f2,...) will pick the best match
      for a given set of arguments, orderedOverload(f1,f2,...) will pick
      the first match which allows to prevent ambiguity.
      
      This functionality is proposed for the standard in P0051R2
      (open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0051r2.pdf).
      There overload(...) is proposed and an upcomming proposal
      with the functionality of orderedOverload(...) is announced.
      Since the former is not accepted and the latter is not even written
      I did explicitly implement this in Dune:: instead of Dune::Std::.
      
      See merge request !153
      cbc5dfe1
    • Carsten Gräser's avatar
    • Jö Fahlke's avatar
      Merge branch 'fix/genericTranformTuple' into 'master' · 20c4047c
      Jö Fahlke authored
      make genericTransformTuple work with constant tuples
      
      This fixes the problem described in #50.
      
      See merge request !150
      20c4047c
    • Jö Fahlke's avatar
      Merge branch 'feature/proper-quoting-for-dunecontrol-exec-args' into 'master' · 6e4a9c39
      Jö Fahlke authored
      [dunecontrol] Properly quote arguments, in particular to exec and bexec.
      
      This means the you can now pass more complex scripts to exec/bexec that use
      quoting themselves, and you don't get things like this anymore:
      ```
      joe@paranoia:~/Projekte/dune-quote/dune-common$ LC_ALL=C bin/dunecontrol exec 'var="quoted value"; echo "$var"'
      --- going to build dune-common  ---
      --- calling exec for dune-common ---
      bash: value: command not found
      
      --- dune-common done ---
      --- done ---
      ```
      
      Closes: #51
      
      Planned merge date: 2016-11-04 or later.
      
      See merge request !157
      6e4a9c39
  5. Nov 03, 2016
  6. Oct 29, 2016
  7. Oct 28, 2016
  8. Oct 27, 2016
  9. Oct 26, 2016
  10. Oct 25, 2016
    • Carsten Gräser's avatar
      Add overload() and orderedOverload() · 8228b3ae
      Carsten Gräser authored
      These helper functions allow to create overload sets from lambdas.
      E.g. one can merge to lambdas for different argument types into
      one overload set in order to easily implement type-specific behaviour
      when looping over a tuple.
      
      While the result of overload(f1, f2,...) will pick the best match
      for a given set of arguments, orderedOverload(f1,f2,...) will pick
      the first match which allows to prevent ambiguity.
      
      This functionality is proposed for the standard in P0051R2
      (open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0051r2.pdf).
      There overload(...) is proposed and an upcomming proposal
      with the functionality of orderedOverload(...) is announced.
      Since the former is not accepted and the latter is not even written
      I did explicitly implement this in Dune:: instead of Dune::Std::.
      8228b3ae
    • Carsten Gräser's avatar
      Merge branch 'feature/is_callable' into 'master' · 381de64f
      Carsten Gräser authored
      Add implementation of std::is_callable
      
      This is proposed for C++17 and helpful to checking correctness
      of predicates supplied to algorithms. This also commes with
      a test that checks is the behaviour is correct, especially
      with respect to various combinations of r-values, r-value references,
      and l-value-references.
      
      See merge request !151
      381de64f
    • Carsten Gräser's avatar
      [std][test] Add implementatio of std::is_callable · 48408e3b
      Carsten Gräser authored
      This is proposed for C++17 and helpful to checking correctness
      of predicates supplied to algorithms. This also commes with
      a test that checks is the behaviour is correct, especially
      with respect to various combinations of r-values, r-value references,
      and l-value-references.
      48408e3b
  11. Oct 24, 2016
  12. Oct 20, 2016
    • Martin Nolte's avatar
      Merge branch 'feature/test-fieldmatrix-cast-operator' into 'master' · fe05ec34
      Martin Nolte authored
      test assignment of matrices with cast operator
      
      Some matrix implementations, e.g., the Jacobian implementations of SPGrid have
      cast operators into the corresponding FieldMatrix type. This patch adds a
      simplified version of such a cast operator to the densematrixassignment test.
      
      See merge request !139
      fe05ec34
  13. Oct 18, 2016
  14. Oct 14, 2016
Loading