Skip to content
Snippets Groups Projects
  1. Oct 08, 2014
  2. Oct 06, 2014
    • Ansgar Burchardt's avatar
      Remove $Id$ keyword. · 650370ae
      Ansgar Burchardt authored
      650370ae
    • Dominic Kempf's avatar
      [test] [CMake] Make debugallocator tests pass with ctest · e2a5a893
      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.
      e2a5a893
  3. Oct 02, 2014
    • Jö Fahlke's avatar
    • Carsten Gräser's avatar
      [utility] Add function for printf-like formating · 92031b05
      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.
      92031b05
    • Carsten Gräser's avatar
      ec2b55cc
    • Christoph Grüninger's avatar
    • Christoph Grüninger's avatar
      Merge branch 'feature/noexcept' · defc931b
      Christoph Grüninger authored
      Conflicts:
      	cmake/modules/CheckCXX11Features.cmake
      	dune/common/std/CMakeLists.txt
      	dune/common/std/Makefile.am
      	m4/Makefile.am
      	m4/dune_common.m4
      defc931b
    • Dominic Kempf's avatar
      [CMake] Allow adding compile flags upon running make · 10ece11c
      Dominic Kempf authored and Dominic Kempf's avatar Dominic Kempf committed
      Autotools users kept complaining, that it is conceptionally
      disappointing that targets cannot be build with flags set upon
      entering make (e.g. make CXXFLAGS+="-myflag" mytarget). This
      patch introduces a small hack, that allows for such feature
      in cmake. It is, however, (at least) questionable whether we
      want to include it. Still, for your information and convenience:
      
      To use the feature you must:
      - be using a CMake generator that is based on Makefiles (defaults to true)
      - set the define ALLOW_EXTRA_CXXFLAGS to true, e.g. by including
        CMAKE_FLAGS="-DALLOW_EXTRA_CXXFLAGS=1" in your optsfile.
      - reconfigure your project
      
      cmake will then wrap a small shell script around your compiler
      and allow you to append the content of an environment variable
      to yout compiler flags. Run for above example:
      EXTRA_CXXFLAGS="-myflag" make mytarget
      
      The additional flags will be visually confirmed if and only if
      you set the verbosity (as always):
      EXTRA_CXXFLAGS="-myflag" make VERBOSE=1 mytarget
      10ece11c
  4. Oct 01, 2014
  5. Sep 30, 2014
  6. Sep 29, 2014
    • Steffen Müthing's avatar
      Merge branch 'feature/FS1042-range-based-for-loops-test-and-iteratorrange' · 1a902a1e
      Steffen Müthing authored
      This branch contains required infrastructure for the new iterator ranges
      in dune-grid. In particular, it adds a configuration test that checks
      whether the compiler supports range-based for loops and a small utility
      class that serves as a container for a pair of begin and end iterators.
      
      * feature/FS1042-range-based-for-loops-test-and-iteratorrange:
        [buildsystem] Check for range-based for.
        [Iterators] Add IteratorRange helper class
      1a902a1e
    • Dominic Kempf's avatar
      Add binaryfunctions.hh as an include to CollectiveCommunication · 05f43148
      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.
      05f43148
  7. Sep 24, 2014
    • Christoph Gersbacher's avatar
      [integer sequence] implement backwards compatible version of integer_sequence · e469a2fb
      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.
      e469a2fb
  8. Sep 23, 2014
  9. Sep 16, 2014
  10. Sep 15, 2014
  11. Sep 10, 2014
    • Martin Nolte's avatar
      [bugfix] add missing include visibility.hh · 2309b953
      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.
      2309b953
  12. Sep 08, 2014
  13. Aug 29, 2014
    • Christoph Grüninger's avatar
      Reduce number of warnings. · 6bbf986b
      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.
      6bbf986b
  14. Aug 18, 2014
    • Andreas Lauser's avatar
      parameter tree parser: do not try to access the first character of empty strings · fe8cb3dc
      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...
      fe8cb3dc
  15. Jul 18, 2014
  16. Jul 17, 2014
  17. Jul 16, 2014
  18. Jul 07, 2014
  19. Jul 06, 2014
  20. Jul 04, 2014
    • Andreas Nüßing's avatar
      [duneproject] fix section name in generation of config.h.cmake · f9e3fbf6
      Andreas Nüßing authored and Christoph Grüninger's avatar Christoph Grüninger committed
      When creating a project and generating the config.h.cmake file, duneproject
      surrounds the inserted text with {begin,end} $NAME. $NAME is set to $PROJECT
      without a leading "dune[-_]" and $PROJECT is the module name specified by the
      user (e.g. $PROJECT==dune-grid, $NAME==grid).
      When DuneMacro.cmake generates the config.h.cmake for the created project in
      the build-directory, it searches the config.h.cmake file in the source
      directory of the project for {begin,end} $ProjectName which is set to
      DUNE_MOD_NAME, which is the module name specified in the corresponding
      dune.module file (e.g. dune-grid).
      This leads to DuneMacro not finding and therefore ignoring the block in the
      source config.h.cmake of the new project.
      f9e3fbf6
  21. Jun 30, 2014
    • Tobias Malkmus's avatar
      [bugfix] add move semantics to DynamicVector · f19517d7
      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.
      f19517d7
  22. Jun 24, 2014
    • Markus Blatt's avatar
      [dunecontrol] Fixes error with installed old DUNE modules · 099ad827
      Markus Blatt authored
      If duncontrol detects an installed dune-common module, then it always
      assumed that it contains a lib/dunecontrol
      subdirectory. Unfortunately, this does not hold for older dune-common
      modules and dunecontrol will error out later with a message like
      
      /usr/local/lib/dunecontrol: file not found
      Execution of dunecontrol terminated due to errors!
      
      With this commit we fix this by actually checking whether the
      lib/dunecontrol subdirectoy exists before adding it to
      DUNE_CONTROL_PATH.
      
      Thanks a lot to wuhao sife for reporting this problem.
      099ad827
  23. Jun 23, 2014
  24. Jun 22, 2014
Loading