- Nov 04, 2016
-
-
Carsten Gräser authored
-
- Oct 25, 2016
-
-
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::.
-
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
-
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.
-
- Oct 20, 2016
-
-
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
-
- Oct 18, 2016
-
-
Oliver Sander authored
Update test environments - No longer test with clang 3.5. - Add clang 3.8 from Debian 8 + backports - Add gcc 5.4 + clang 3.8 from Ubuntu 16.04 LTS. - Use `duneci-standard-test` See merge request !146
-
Ansgar Burchardt authored
gcc 5.4 and clang 3.8.
-
Ansgar Burchardt authored
-
Ansgar Burchardt authored
Reference: core/dune-common#37
-
Ansgar Burchardt authored
-
- Oct 14, 2016
-
-
Jö Fahlke authored
[Singleton] Make creation of the instance thread-safe. Closes: core/dune-common#46. See merge request !141
-
Elias Pipping authored
It should compile for the FieldMatrix class but not DynamicMatrix
-
- Oct 12, 2016
-
-
Christoph Grüninger authored
[CMake] always use check for C++14 This prevents users to run into compiler errors for unsupported compilers like GCC 4.8 or C++ std libraries with insufficient C++14 support. See merge request !120
-
Christoph Grüninger authored
This prevents users to run into compiler errors for unsupported compilers like GCC 4.8 or C++ std libraries with insufficient C++14 support.
-
Christoph Grüninger authored
-
Steffen Müthing authored
Implement workarounds for broken sizeof... This adds `Dune::SizeOf` that can be use as `Dune::SizeOf<T...>::value` as a drop in replacement for `sizeof...(T)`. This is necessary because the latter is broken in clang<3.8. Because the bug also effects `std::index_sequence_for` we now __always__ provide our manually written fallback implementation `Std::index_sequence_for` that works around the bug by using `SizeOf`. As a rule of thumb you should always use `SizeOf` instead instead of `sizeof...` in variadic template aliases if you want to avoid compiling code that produces wrong results. See merge request !127
-
- Oct 07, 2016
-
-
Oliver Sander authored
Make FieldVector::size() static Being static allows to use size() in constexpr contexts. This implements #2. See merge request !144
-
Carsten Gräser authored
Being static allows to use size() in constexpr contexts.
-
Christoph Grüninger authored
[cmake] Fix empty unset That was to much empty paratheses in 4b0edfc2… See merge request !143
-
Christoph Grüninger authored
That was to much empty paratheses in 4b0edfc2…
-
Jö Fahlke authored
Closes: core/dune-common#46.
-
Christoph Grüninger authored
Add `dune-ctest`, a wrapper around `ctest` CTest returns with an error status not only when tests failed, but also when tests were only skipped. This wrapper checks the log and returns successfully if no tests failed; skipped tests do not result in an error. This behaviour is needed in a continuous integration environment, when building binary packages or in other cases where the testsuite should be run automatically. Closes issue #12 See merge request !132
-
CTest returns with an error status not only when tests failed, but also when tests were only skipped. This wrapper checks the log and returns successfully if no tests failed; skipped tests do not result in an error. This behaviour is needed in a continuous integration environment, when building binary packages or in other cases where the testsuite should be run automatically. Closes issue #12
-
Christoph Grüninger authored
Cleanup/cmake formatting See merge request !138
-
Martin Nolte authored
-
Martin Nolte authored
This patch disables the implicit cast operator to FieldMatrix or DynamicMatrix, if there is no suitable DenseMatrixAssigner. This way, the compiler will start looking for cast operators on the right hand side, again.
-
Christoph Grüninger authored
* mainly emtpy if(), else() and so on * macro lowercase * no space after if or macro
-
Christoph Grüninger authored
[cmake] Rename Doxyfile target to prevent name clashes The output is called Doxyfile and the target should have a different name, otherwise Ninja warns about it. See merge request !137
-
Christoph Grüninger authored
The output is called Doxyfile and the target should have a different name, otherwise Ninja warns about it.
-
Martin Nolte authored
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.
-
Christoph Grüninger authored
FieldMatrix: Allow copy construction from scalar See also !52. See merge request !140
-
- Oct 06, 2016
-
-
Elias Pipping authored
See also !52
-
Martin Nolte authored
-
- Oct 05, 2016
-
-
Oliver Sander authored
Rework DenseMatrix assignment This is meant as a fix for bug #5. It * Enables assignment across different `DenseMatrix` implementations, e.g. assignment from a `DynamicMatrix` to a `FieldMatrix` (this previously either compiled and segfaulted or did not compile) * Catches invalid `FieldMatrix` assignments at compile-time * Retaines the `DenseMatrixAssigner` class in order to remain compatible with user-defined matrix classes ~~To me it looks 99% good to go. There is only remaining question that I cannot answer on my own:~~ * ~~Should `FieldMatrix<double, 3, 3> x = 27` compile? In other words, should the constructor be marked as `explicit` or not? Of course, one can always use `FieldMatrix<double, 3, 3> x(27)` instead.~~ I've tested this fix with multiple modules and it doesn't break anything for me. See merge request !52
-
- Oct 02, 2016
-
-
Elias Pipping authored
This addresses issue #5
-
Oliver Sander authored
Deprecate the identitymatrix.hh file This patch makes the preprocessor emit a #warning whenever the file identitymatrix.hh is included. Reasons: - It is not used anywhere in Dune core or staging or any other module I know. - I have never heard a compelling reason to have it. - It produces maintenance costs (see core/dune-common!52) - IIRC it entered dune-common without discussion. See merge request !136
-
- Sep 21, 2016
-
-
Carsten Gräser authored
-
Oliver Sander authored
This patch makes the preprocessor emit a #warning whenever the file identitymatrix.hh is included. Reasons: - It is not used anywhere in Dune core or staging or any other module I know. - I have never heard a compelling reason to have it. - It produces maintenance costs (see !52) - IIRC it entered dune-common without discussion.
-
- Sep 19, 2016
-
-
Dominic Kempf authored
This reverts merge request !135
-
Dominic Kempf authored
[cmake][bugfix] Correctly determine scripts directory with dune_module_path The previous implementation assumed that dune-common exports the path, but it does not. See merge request !135
-