- Oct 06, 2014
-
-
Dominic Kempf authored
testdebugallocator_fail{1..5} are a very special sort of tests, as in order to pass they are expected to fail with a signal like SIGABRT or SIGSEGV. While autotools, dont distinguish much about how a test failed, if it is supposed to fail, ctest handles signals from the test and distinguishes this from normal termination with nonzero exit code. This commit introduces a signal handling in the test itself, that causes the program to terminate "normally" with a nonzero exit code instead of passing the signal to the fathering process (ctest). The signal, which is expected to be received can be set from CMakeLists.txt via a preprocessor variable.
-
- Oct 02, 2014
-
-
Jö Fahlke authored
-
Carsten Gräser authored
This basically wraps the raw snprintf in order to provide overflow-save printf functionality while hiding the details like buffers handling, multiple calls to snprintf, ... Note that snprintf is a c++11 feature that is, however, present in gcc-4.4.
-
Carsten Gräser authored
-
- Oct 01, 2014
-
-
Tobias Malkmus authored
This very old gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10200 is fixed in clang but not in icc or gcc, see FS#1505.
-
- Sep 30, 2014
-
-
Jö Fahlke authored
-
Christoph Grüninger authored
-
Steffen Müthing authored
In order to simplify fallback handling between code with and without MPI support, this patch makes the specialization of CollectiveCommunication for MPI communicators default-constructible by defaulting the underlying MPI communicator to MPI_COMM_WORLD, which should be reasonable for most scenarios. As the non-specialized version for sequential code is already default-constructible, this allows grid constructors to accept a CollectiveCommunication object regardless of whether MPI support is enabled or not and to provide a default value for this parameter. This patch resolves FS#1497.
-
- Sep 29, 2014
-
-
Dominic Kempf authored
CollectiveCommunication serves as a fallback implementation, when code that is written for parallel computations is executed in sequential. The template parameters BinaryFunctions are no-op then, but they are still there to define the interface. However, in a generic (parallel) implementation these will be given. Including binaryfunctions.hh here avoids error messages due to no-op template parameters whose names could not be found by the compiler.
-
- Sep 24, 2014
-
-
Christoph Gersbacher authored
C++14 will introduce integer/index sequences in the header <utility>. This patch introduces a backwards compatible implementation similar in use. However, the implementation differs in the following technical details: - index_sequence is not a template alias for integer_sequence but inherits from it - make_{integer, index}_sequence are not a template aliases but free standing functions Both differences stem from the absence of template aliases introduced in GCC aa late as gcc-4.7. This implementation will work in gcc-4.4 and later.
-
- Sep 16, 2014
-
-
Christoph Grüninger authored
Macro to use C++11 feature noexcept specifier. Add test for CMake and autotools.
-
- Sep 10, 2014
-
-
Martin Nolte authored
When using DUNE_EXPORT, you need to include visibility.hh. This was omitted when adding this flag to the Singleton class in singleton.hh. This patch adds the missing include.
-
- Sep 08, 2014
-
-
Christian Engwer authored
for details see FS#1398
-
- Aug 29, 2014
-
-
Christoph Grüninger authored
nullptr-test.cc: Move semicolon to own line to prevent Clang warning. typetraitstest.cc: Exclude use of deprecated types PointeeType and ReferredType with DISABLE_DEPRECATED_METHOD_CHECKS defined.
-
- Aug 18, 2014
-
-
Andreas Lauser authored
funnily enough, this usually worked (i.e. it returned some garbage which was not recognized by the switch statement that followed), and was not detected by valgrind (on my machine at least, I suppose this was because the address to which the string pointed was still a valid memory location created by some previous user). The libstdc++ debug mode (-D_GLIBCXX_DEBUG=1 -D_GLIBCXX_DEBUG_PEDANTIC=1) did find it though...
-
- Jul 18, 2014
-
-
Steffen Müthing authored
IteratorRange is a cheap, throwaway container to implement support for range-based for loops if the underlying containers doesn't provide standard begin() / end () methods.
-
- Jul 07, 2014
-
-
Oliver Sander authored
Test (almost) all methods requested by the STL (as documented on http://www.cplusplus.com/reference/iterator/ForwardIterator/ ) Test whether std::iterator_traits is properly specialized.
-
- Jul 06, 2014
-
-
Christoph Grüninger authored
There is more macro magic to be removed.
-
Christoph Grüninger authored
Maybe we can deprecate the complete header type_traits.hh.
-
- Jun 30, 2014
-
-
Tobias Malkmus authored
Gcc 4.6 cannot generate default move constructor for classes containing a DynamicVector because there is no move constructor and the copy constructor is non-trivial. This patch fixes this, by adding move semantics.
-
- Jun 23, 2014
-
-
Steffen Müthing authored
-
- Jun 22, 2014
-
-
Andreas Dedner authored
NDEBUG is undefined (allows to tests asserts without doubling call to all interface methods). NDEBUG needs to be undefined and DUNE_INTERFACECHECK needs to be defined to check the correct implementation of CRT interface methods.
-
- Jun 03, 2014
-
-
Markus Blatt authored
-
Markus Blatt authored
-
- May 22, 2014
-
-
getrusage() is a very expensive system call and involves several kernel locks. This prevents multithreaded applications from scaling effectively. Using std:chrono::high_resolution_clock is portable and very low cost in most cases.
-
- May 20, 2014
-
-
Christian Engwer authored
-
Christian Engwer authored
This avoids compiler warning about implicitly rounded to zero
-
Christian Engwer authored
-
Christian Engwer authored
This reverts commit cf4bf4d8. The epxlicit cast isn't needed anymore as we have a fix for the ambiguous operator overload.
-
Marco Cecchetti authored
The bug affected operators: +=, -=, *=, /=. It has been fixed by using: enable_if<is_convertible<ParamType, FieldVector::valueType>, ...>
-
- May 15, 2014
-
-
Oliver Sander authored
-
Oliver Sander authored
-
- May 14, 2014
-
-
Oliver Sander authored
-
- May 02, 2014
-
-
Christian Engwer authored
-
- Apr 17, 2014
-
-
Markus Blatt authored
-
Markus Blatt authored
oelements stores longs which need to be converted to pointers before freeing. Previously we actually free the entries of the array oelements and not the stored pointers.
-
Markus Blatt authored
There might be liftime issues with the allocated memory when copying a pool. Therefore I added a check whether the memory was actually allocated by the pool when freeing it.
-
- Apr 16, 2014
-
-
Andreas Dedner authored
(the problem are operators of the type FieldVector<double,1> *= int) clang fails and gcc (4.7) warns about ISO C++ saying that these operators are aambiguous
-
Markus Blatt authored
With g++-4.4 I got the following errors: fmatrix.hh:106: error: no type named ‘const_iterator’ in ‘class std::initializer_list<std::initializer_list<int> >’ Looking into the header there is indeed the const_iterator (demanded by the standard) missing. Therefore I refactored the code to use std::copy_n and thus am omitting the iterator type. At the same time I made the actual copying safer for the case that the initializer_list is of different size and people compile with -DNDEBUG. The assertion for the size is still left in there. Remove the assert or the size computation at your discretion.
-
Oliver Sander authored
-