- Dec 26, 2014
-
-
Jö Fahlke authored
g++-4.5 was not tested. g++-4.6 is ok with lambdas.
-
- Dec 19, 2014
-
-
Jö Fahlke authored
We simply get the flags from ACX_PTHREAD. If we are compiling natively, we run a test program to check whether that worked. Otherwise we print a warning and assume that threading works.
-
Jö Fahlke authored
We simply get the flags from find_package(Thread). If we are compiling natively, we run a test program to check whether that worked. Otherwise we print a warning and assume that threading works.
-
- Dec 18, 2014
-
-
Jö Fahlke authored
-
Jö Fahlke authored
These check whether std::call_once() works and provide a helpful error message if it does not. They should be used in any code that uses std::call_once(). Call once may not work if one forgets to _link_ with -pthread (or similar options). The nasty think about this is that linking still succeeds, so this can only be detected at run time. We cannot (in general) run compiled programs during configure, since we may be cross-compiling, so whatever we get from configure is at best a guess. Even if configure detects the necessary flags correctly, there may still be errors in the build system such that the executable is linked without them. The reason to provide such a facility is that the bug is quite difficult to debug when it appears. The error message is mangled due to a different bug, and is quite unhelpful anyway. And then there is the fun with weak symbols...
-
- Dec 12, 2014
-
-
Christoph Grüninger authored
Otherwise the headers in dune-grid-howto and and in dune-multidomain/tests cannot be checked.
-
- Dec 11, 2014
-
-
Christoph Grüninger authored
With CMake 3.1 variable indication with the @ symbol is no longer valid, use ${} instead, cf. CMP0053. The @ is only allowed for configuration files which are transformed. The generated files are the same with CMake 3.1~rc2 and CMake 2.8.6.
-
- Dec 08, 2014
-
-
Christoph Grüninger authored
Moved from dune-istl's config.h.cmake. Otherwise it cannot be shared with other modules using ParMETIS.
-
- Dec 05, 2014
-
-
Dominic Kempf authored
This specialization was missing and made it impossible to parse bitsets. The implementation uses the specialization for bool. It was not possible to reuse the parseRange method, because a bitset doesnt have begin() and end().
-
- Dec 02, 2014
-
-
Carsten Gräser authored
While the following is legal c++11 array<T,n> foo = { t1, t2, ...} older compilers (namely gcc-4.4) issue a warning on missing braces.
-
Carsten Gräser authored
-
Christoph Grüninger authored
This reverts commit d26e5ed3. We have to wait until our minimal required compiler is GCC 4.7 or newer. Thanks to Carsten for the heads-up.
-
- Dec 01, 2014
-
-
Carsten Gräser authored
-
Carsten Gräser authored
-
- Nov 28, 2014
-
-
Christoph Grüninger authored
The signature changed in C++11 which we require now. To get more details see the mailinglost in October 2012.
-
Christoph Grüninger authored
It should be std::endl. Courtesy of GCC 5-svn, it refuses to compile these.
-
Christoph Grüninger authored
GCC warns about it.
-
Carsten Gräser authored
While gcc supports them (as extension) runtime sized arrays are not standard c++. They are not even contained in c++14 but postponed to a later TS.
-
- Nov 26, 2014
-
-
Tobias Malkmus authored
Use output of find_package(MPI) consistent.
-
Markus Blatt authored
In dune-grid we want to export the path to the grid example files. To do this without a handwritten package configuration file, We add a custom section to it that can be filled by the modules using the variable DUNE_CUSTOM_PKG_CONFIG_SECTION before finalizing the cmake build system. For dune-grid we export the variable DUNE_MODULE_SRC_DOCDIR that points to the installed documentation and the path to the source files of the documenation in the installed and not-installed module, respectively.
-
Christoph Grüninger authored
Suggested modules are quite often not available and for a large number of suggested modules the output is very cluttered. The error message is anyway printed manually.
-
- Nov 25, 2014
-
-
Christoph Grüninger authored
-
Christoph Grüninger authored
-
- Nov 23, 2014
-
-
Christoph Grüninger authored
Pass --no-cmake to dunecontrol to force the use of autotools. If no build directory is given, make files, libararies and executables are in <module-dir>/build-cmake/ . Further information in FS#1000 and FS#1500.
-
- Nov 21, 2014
-
-
Christoph Grüninger authored
With the removal of the fall-back code for many C++11 features like shared_ptr or hash, we no longer need Boost in dune-common. If your model has relies on a boost check, add the call to the buildsystem of your module. The Dune-islt commit …3ee92f05012 is an example what must be done.
-
Christoph Grüninger authored
-
- Nov 19, 2014
-
-
Christoph Grüninger authored
The warning was spilled out for every module for every command, even for update. The build directory is announced by CMake's configure anyway. Now it is printed for make, too.
-
- Nov 15, 2014
-
-
Christoph Grüninger authored
CMAKE can now be set in the shell or the opts file, if both are set the shell has higher priority. This feature was dropped in …aef001c21e3a9 to fix FS#1518.
-
Christoph Grüninger authored
-
- Nov 13, 2014
-
-
Jö Fahlke authored
Add "@relatesalso null_deleter", this includes the documentation for the function with null_deleter but also leaves a standalone version. Document what is so special about the shared_ptr the function returns. Mention the #include needed to get the function.
-
- Nov 08, 2014
-
-
Jö Fahlke authored
"C", no matter what locale is currently set.
-
Jö Fahlke authored
[parametertree][locale][fs1528] Check ParameterTree::get() with a locale using "," as the decimal seperator. ParameterTrees are usually read from configuration files. The format of the configuration file should not depend on the locale. For the commandline parser it would likewise be surprising if "progname -param 0.5" stopped working in a german locale. Not long ago these kinds of errors would not even generate a diagnosis due to FS#1527. However, the locale of the program is "C" by default, so probably not many poeple are actually affected by this problem. It can happen however that other libraries linked into the same program set the locale from the environment.
-
Jö Fahlke authored
"Makefile.in", "*.o", etc. need only be listed in the toplevel .gitignore, the rules are applied recursively. Test programs etc. should be listed as "/program" in their directory's .gitignore, so they are not accidentially ignored in a lower level directory.
-
Jö Fahlke authored
ParameterTree::get("key", def). These overloads were using atoi() resp. atof(), effectively ignoring junk at the end of values. This led to the situation where a floating point value "0.5" could be parsed as an int "0" without any diagnostic.
-
Jö Fahlke authored
-
Jö Fahlke authored
assert() works only in debug builds (without -DNDEBUG). Instead, implement our own check_assert().
-
- Nov 07, 2014
-
-
Oliver Sander authored
-
Oliver Sander authored
I took the formula from http://en.wikipedia.org/wiki/Eigenvalue_algorithm (retrieved lated August 2014). Wikipedia claims to have taken it from Smith, Oliver K. (April 1961), Eigenvalues of a symmetric 3 × 3 matrix, Communications of the ACM 4 (4): 168, doi:10.1145/355578.366316 I did not check stability of efficiency of this, but no problems related to either are mentioned in the literature. The main reason I need the closed-form expression is to be able to pipe it into an algorithmic differentiation system.
-
- Nov 06, 2014
-
-
Oliver Sander authored
Rip out the complete test for eigenValuesNonSym and replace it by the Rosser matrix test from fieldmatrixtest.cc The old test was complete nonsense: an implementation of some sort of strange undocumented shape function set that happened to need eigenvalues for something. Lots of undocumented code, and no checks at all whether the values obtained by eigenValuesNonSym actually make sense. Only, for the particular choice of parameters used, eigenValuesNonSym was never called. Yes, you read this correctly: these hundreds of lines of code didn't actually test anything. The new test is copied form fieldmatrixtest.cc and adapted for DynamicMatrix types. It computes eigenvalues of a given 8x8 matrix and compares with the known results. Unfortunately, the test matrix is only symmetric. Tests with more general matrices are left for another day.
-
Oliver Sander authored
Rather than assuming the caller has set it to the correct size already. Setting the size in the method eigenValuesNonSym itself makes code more robust. Plus, the time needed for that should be negligible compared to the actual eigenvalue computations.
-