Commits on Source (63)
-
Christoph Grüninger authored
This fixes FS#1614. (cherry picked from commit f12adb99)
-
(cherry picked from commit a5d7774e)
-
(cherry picked from commit d22ed390)
-
(cherry picked from commit bb04c50d)
-
(cherry picked from commit 7aa683f1)
-
(cherry picked from commit bc5578c4)
-
Carsten Gräser authored
Merge remote-tracking branch 'origin/feature/fix-variablesizecom-with-empty-interface' into releases/2.4 Merge on request of Markus Blatt
-
Carsten Gräser authored
This only contains commits that: * were already cherry-picked * were requests to be cherry-picked by Ansgar in preparation for integration into debian
-
Steffen Müthing authored
The test for __cxa_demangle(), which is used by Dune::className() to demangle type names, doesn't work on my clang 3.6. Apparently, clang requires the user to include <typeinfo> before <cxxabi.h>. While classname.hh already does this, the build system tests don't, causing the feature to get disabled on clang. Fixed by adding the include to the build system tests. (cherry picked from commit 70f52c0d) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
Ansgar fixed a bunch of problems in bigunsignedint - and improved the corresponding test! yeah! * p/ansgar/FS1644-bigunsignedint: Rework bigunsignedinttest.cc. bigunsignedint: Remove unneeded variable in operator%. bigunsignedint: Fix operator-. bigunsignedint: Throw an exception when constructing from a negative integer. bigunsignedint: make overload unambiguous for all integer types Use fixed-width integer types (C++11) (cherry picked from commit 4c79a644) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
According to the standard, all specializations of std::hash must export argument_type and result_type [20.8.12/1]. The version of libc++ (LLVM's alternative C++ standard library) tripped over this requirement on my machine, so this patch adds the typedefs. (cherry picked from commit a64ca159) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
(cherry picked from commit e9634076) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
The std::numeric_limits specialization for bigunsignedint requires access to the internal state of bigunsignedint. Previously, the correct specialization of std::numeric_limits was a friend of bigunsignedint, but that creates problems on recent versions of clang with the alternative libc++ library, because that library declares the base template of std::numeric_limits as a class and clang subsequently complains if the friend declaration uses 'struct'. Unfortunately, libstdc++ uses a struct, making it impossible to keep clang happy for both standard libraries. So we introduce a helper class that provides access to the internal state and which now becomes a friend of bigunsignedint. The numeric_limits specialization inherits from the helper to use it. (cherry picked from commit a7951dff) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
We do not really support this combination of C++11 features, and the only time it should occur is when the user has a recent Intel Compiler and an outdated GCC (which the Intel Compiler uses for the C++ standard library). In that case, we emit a helpful error message at configuration time. (cherry picked from commit c3e637ab) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
This branch resolves somes smaller problems with the dune_enable_all_packages() feature and importantly provides support for modules with libraries and CMake < 3.1. * feature/FS1654-improve-dune-enable-all-packages: [Release][CMake] Add support for compile options in DuneEnableAllPackages [Release][CMake][Bugfix] Use correct test in if() command [Release][CMake] Add dune_target_enable_all_packages() [Release][CMake][Bugfix] Remove stray unset() command [Release][CMake] Convert macros to functions in DuneEnableAllPackages [Release][CMake] Improve documentation in DuneEnableAllPackages.cmake (cherry picked from commit 7cc5bc4b) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
Thanks for spotting that, Dominic! (cherry picked from commit c849d756) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
We have to call add_definitions() in a loop because add_definitions() is kind of broken: even though it is supposed to be *the* function for adding compile definitions, it does not prepend "-D" (as opposed to target_compile_definitions(), which does). Well, whatever... (cherry picked from commit bd578fd8) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Ansgar Burchardt authored
This change should make formatString safe to use in multi-threaded programs. This fixes FS#1636. (cherry picked from commit f529d23f) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
A typo made it impossible to say 'no'. Furthermore, I changed the text shown to the user to point to the module documentation. (cherry picked from commit fb1ce0b4) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Ansgar Burchardt authored
ptrdiff_t is a signed integer type and so the expression (std::uintptr_t)(ptr) % page_size could become a negative value. In this case the page_ptr would be the address of the next page after the allocation. This wrong behaviour could be observed on (32bit) PowerPC: here ptr was 0xf78cfe00 and page_ptr was calculated as 0xf78d0000 instead of the correct 0xf78c0000. (cherry picked from commit 1659ea4b) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
Passing multiple files to dune_symlink_to_source_files() was broken. While at it, I switched the given macros to be functions and have named arguments. Using positional arguments will result in a warning. (cherry picked from commit 797fbfa1) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Ansgar Burchardt authored
This closes FS#1651. (cherry picked from commit 6552b897) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Jö Fahlke authored
are on Ubuntu. (cherry picked from commit f9c79378) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Jö Fahlke authored
on Ubuntu. (cherry picked from commit 71e08e51) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Steffen Müthing authored
dune_library_add_sources() verifies the library name against the contents of DUNE_ENABLE_ALL_PACKAGES_MODULE_LIBRARIES. I accidentally broke this by converting dune_enable_all_packages (which defines the variable) from a macro to a function, which removed the variable from global scope. This patch fixes the problem by explicitly exporting the variable to the parent scope, making it available to dune_library_add_sources() again. (cherry picked from commit 289d3eb6) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Christoph Grüninger authored
Fixes FS#FS#1649. (cherry picked from commit 63256eeb) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christoph Grüninger authored
(cherry picked from commit 7330cbcd) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christoph Grüninger authored
Affected are older CMake versions 2.8.6 to 2.8.9 maybe even, newer versions. (cherry picked from commit 2d38fedf) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christoph Grüninger authored
BOOST_FOUND seems to be no longer known, use HAVE_DUNE_BOOST instead. (cherry picked from commit dfeeea79) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
most of the tests work. std::complex<GMPField> does not work as expected, but this is perhaps something we don't want to support. As std::complex does not allow to initialize with other parameters than the data type itself, we can not initialize from int or other compatible scalar values. The smae problem occures when interacting with int values directly. (cherry picked from commit bde9dc6e) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
The templated constructor of GMPField fatched everything. We reduce the constructor to those scalar values, which are convertible to mpf_class. As this removes the constructor from char* we explicitly add constructor from char* and std::string. This is the main part to fix FS#1665 (cherry picked from commit 3fe52527) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
(cherry picked from commit 49200b29) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
we first import function like std::max into the local scope and the call max(a,b) instead of std::max(a,b). This allows to match specializations for other data types via ADL. (cherry picked from commit 515f312a) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
(cherry picked from commit 7135cbb0) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
in order to make GMPField work in more situations, we add a constrctor, which matches all scalar data types, which can me converted to K. We deliberately exclude K from the template match. (cherry picked from commit 9d46150e) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Carsten Gräser authored
Before the test was not active since '#if HAVE_GMP' fails if the gmp-flags where not added. (cherry picked from commit 045c6d93) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christian Engwer authored
the first problem was that I accidentially enabled the ScalarOrderingTest, but this forced me to investigate further and I found out how this works, or not works. We have to add the comparison operators to FieldVector, as the cast operator does not always match, e.g. in the case of GMPField. (cherry picked from commit e0ac8d9a) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
For discussion check FS1648. Disabling a cmake module through CMAKE_DISABLE_FIND_PACKAGE_... was only partially working: - Any module suggesting the disabled module would not search for it - dunecontrol did not have this knowledge and built the disabled module nevertheless This commit fixes the latter. (cherry picked from commit 8b04df71) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
This document gathers some beginners question about the CMake build system. It is built during make doc and made available on the website through the doc installation. (cherry picked from commit c2e198a9) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
This bug could only be found outside Germany :D (cherry picked from commit ecdb7f7b) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
(cherry picked from commit ae8fd0da) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Ansgar Burchardt authored
(cherry picked from commit 648dff2b) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Oliver Sander authored
(cherry picked from commit 58221538) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Oliver Sander authored
Viz., the question on whether all packages should be enabled by default. This fixes FS 1647. (cherry picked from commit 20ac0ea1) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Steffen Müthing authored
This branch fixes a number of problems related to dune_enable_all_packages(): - The feature requires at least CMake 2.8.12, which is more recent than the baseline requirement of the core modules (2.8.12). We now check for that when executing the relevant functions and also remind the user to set the correct version in cmake_minimum_required(). - Updated the documentation to also state the version requirement. - The duneproject script now also warns the user about the more stringent CMake version requirements when using the feature and sets the correct minimum required CMake version in the new module's main CMakeLists.txt file. - There was a bug in duneproject that caused it to always enable dune_enable_all_packages(), ignoring the choice made by the user. That bug is fixed in this branch. - Some minor fixes to duneproject while I was at it. This fixes FS1678. * feature/FS1678: [dunecontrol] Output choice of external package handling and required CMake version [duneproject] Allow specifying ENABLE_ALL as 5th command line argument [duneproject] Update CMake minimum version if ENABLE_ALL is true [duneproject][Bugfix] Make sure dune_enable_all_packages() can actually be disabled [CMake] Improve documentation in DuneEnableAllPackages.cmake [CMake][Doc] Add required CMake version to dune_enable_all_packages() [CMake] Require CMake 2.8.12 for dune_enable_all_packages() [CMake] Fix typo in warning message. Add a warning that some functions are 2.8.12 (cherry picked from commit 90411efd) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Robert K authored
script. This feature is disabled by default and can be enabled by -DALLOW_CXXFLAGS_OVERWRITE=ON.
-
Robert K authored
-
Robert K authored
-
Robert K authored
-
Robert K authored
-
Christian Engwer authored
The duncontrol / dune.module mechanism allowes to overload the run_* commands, which are executed in order to setup/build/etc. a module. This patch fixes a bug in the cmake parsing of the dune.module file. Somehow cmake tried to interpret the content of the dune.module as cmake code. We now use a different strategy to parse the file and avoid storing the content in a temporary variable. >> please backport to 2.4 (cherry picked from commit bd20824b) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Ansgar Burchardt authored
The storage of bigunsignedint was changed to std::uint16_t in commit 541b3dfc. This implements the same change for the MPITraits<bigunsignedint<k>> Note that this assumes that MPITraits<std::uint16_t> is defined. This is the case as long as uint16_t maps to one of the standard integer types (unsigned char/short/int/long). Thanks to Markus for pointing this out. Reference: https://dune-project.org/flyspray/index.php?do=details&task_id=1657#comment6393 (cherry picked from commit 586375b4) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Ansgar Burchardt authored
Since 0c697d8d messages of size zero are no longer sent. This can reduce the number of requests we have to wait for. (cherry picked from commit f35437e9) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Steffen Müthing authored
The shell script logic for switching dune_enable_all_packages() on or off in duneproject was broken and always turned the feature on, ignoring the user input. Fixed by testing for the actual contents of the variable instead of its length and by converting the contents to lowercase before. (cherry picked from commit 346657b7) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Ansgar Burchardt authored
(cherry picked from commit 6100b778) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Dominic Kempf authored
With the recent changes to bigunsignedint, the index cannot be initialized with a negative value anymore. We change this to 1 to overcome the problem. This commit together with the recent bugfixes by Ansgar fixes the AMG code on master. (cherry picked from commit bf023947) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Steffen Müthing authored
CMake >= 2.8.12 can optionally use @rpath to embed dynamic linker paths into shared libraries on OS X. This greatly improves reliability with libraries in non-standard locations and should definitely be turned on by default. (cherry picked from commit 13fc4020) Signed-off-by:
Steffen Müthing <muething@dune-project.org>
-
Christoph Grüninger authored
Setting a policy must be guarded as older CMake version do not know about the policy.
-
Steffen Müthing authored
IteratorRanges are convenient for storing ranges of iterators into a larger container, e.g. for the per-codim GeometryTypes in an IndexSet. Unfortunately, you can't just create an array of IteratorRanges right now because they can neither be copied, nor are they default-constructible. This patch fixes that problem and also adds a second typedef const_iterator to make IteratorRange work in contexts where the iterating code isn't using range-based for and assumes a const object. (cherry picked from commit 2c9596f9) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Felix Gruber authored
(cherry picked from commit f6ab9f0f) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christoph Grüninger authored
Commit 4878943f actuall did change the default behavior, it effectifly disabled LaTex for some users. To disable LaTeX pass -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE (cherry picked from commit 88bbf966) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christoph Grüninger authored
- Get rid of \\ at end of paragraphs - Fix various misspellings - add some convenience macros - add myself as co-author - break long lines which were modified anyway (cherry picked from commit 8d2ee549) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
-
Christoph Grüninger authored
Update CXXFLAG question. More proof reading and line wrapping. (cherry picked from commit 08c2294d) Signed-off-by:
Carsten Gräser <graeser@dune-project.org>
Showing
- bin/duneproject 34 additions, 6 deletionsbin/duneproject
- cmake/modules/CMakeLists.txt 1 addition, 0 deletionscmake/modules/CMakeLists.txt
- cmake/modules/CheckCXX11Features.cmake 37 additions, 3 deletionscmake/modules/CheckCXX11Features.cmake
- cmake/modules/DuneCxaDemangle.cmake 2 additions, 1 deletioncmake/modules/DuneCxaDemangle.cmake
- cmake/modules/DuneEnableAllPackages.cmake 127 additions, 34 deletionscmake/modules/DuneEnableAllPackages.cmake
- cmake/modules/DuneMacros.cmake 30 additions, 17 deletionscmake/modules/DuneMacros.cmake
- cmake/modules/DuneSymlinkOrCopy.cmake 23 additions, 9 deletionscmake/modules/DuneSymlinkOrCopy.cmake
- cmake/modules/FindBoostFusion.cmake 3 additions, 3 deletionscmake/modules/FindBoostFusion.cmake
- cmake/modules/Makefile.am 1 addition, 0 deletionscmake/modules/Makefile.am
- cmake/modules/OverloadCompilerFlags.cmake 99 additions, 0 deletionscmake/modules/OverloadCompilerFlags.cmake
- doc/buildsystem/CMakeLists.txt 3 additions, 0 deletionsdoc/buildsystem/CMakeLists.txt
- doc/buildsystem/Makefile.am 1 addition, 1 deletiondoc/buildsystem/Makefile.am
- doc/buildsystem/cmakefaq.tex 338 additions, 0 deletionsdoc/buildsystem/cmakefaq.tex
- doc/doxygen/Doxylocal 3 additions, 3 deletionsdoc/doxygen/Doxylocal
- doc/doxygen/mainpage.txt 0 additions, 0 deletionsdoc/doxygen/mainpage.txt
- doc/doxygen/modules.txt 0 additions, 0 deletionsdoc/doxygen/modules.txt
- dune/common/bigunsignedint.hh 78 additions, 42 deletionsdune/common/bigunsignedint.hh
- dune/common/debugallocator.hh 2 additions, 1 deletiondune/common/debugallocator.hh
- dune/common/densevector.hh 22 additions, 11 deletionsdune/common/densevector.hh
- dune/common/fvector.hh 47 additions, 3 deletionsdune/common/fvector.hh
cmake/modules/OverloadCompilerFlags.cmake
0 → 100644
doc/buildsystem/cmakefaq.tex
0 → 100644