Skip to content
Snippets Groups Projects
  1. Feb 06, 2015
    • Steffen Müthing's avatar
      [Utility] Add infrastructure to handle operator->() for both lvalues and proxies · 7623a530
      Steffen Müthing authored
      If an iterator facade (like entity iterators) wants to allow the
      embedded implementation to return either an (internally stored)
      reference or a temporary object and expose these two behaviors to enable
      performance optimizations, operator->() needs special handling: If the
      implementation returns a reference, operator->() in the facade can
      simply return the address of the referenced object, but if the returned
      object is a temporary, we need to capture and store it in a helper
      object to make sure it outlives the member access.
      
      This patch adds a little helper function that tansparently handles both
      cases.
      7623a530
  2. Dec 18, 2014
    • Jö Fahlke's avatar
      [threads] Introduce DUNE_ASSERT_CALL_ONCE and assertCallOnce(). · 92947aaf
      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...
      92947aaf
  3. Jul 18, 2014
  4. Feb 14, 2014
  5. Dec 18, 2013
  6. Dec 03, 2013
    • Christoph Gersbacher's avatar
      Implement read-only IdentityMatrix · 64df6274
      Christoph Gersbacher authored
      This implementation of an IdentityMatrix does not hold any data. It
      implements a reduced version of the DenseMatrix interface including a
      standard C++ cast operator to a Dune::FieldMatrix. This code illustrates
      the new forward capabilities of DenseMatrixAssigner.
      64df6274
  7. Oct 11, 2013
  8. Oct 05, 2013
  9. Oct 02, 2013
  10. Oct 01, 2013
    • Martin Nolte's avatar
      [c++11] add support for C++11 constexpr · 45990b69
      Martin Nolte authored
      As decided on the developer meeting in Aachen, we support (but do not
      rely on) the C++11 keyword constexpr. This patch adds an m4-check for
      constexpr and a header (cxx11.hh) defining a macro DUNE_CONSTEXPR either
      as constexpr or empty (depending on the compiler support for it). It is
      then used in FieldVector and FieldMatrix on size, rows, and cols.
      45990b69
  11. Mar 12, 2013
  12. Feb 19, 2013
  13. Sep 27, 2012
  14. Sep 20, 2012
  15. Sep 03, 2012
  16. Aug 31, 2012
  17. Aug 10, 2012
  18. Jun 19, 2012
  19. May 22, 2012
  20. May 19, 2012
  21. May 16, 2012
    • Markus Blatt's avatar
      Package configuration files and find_package use the regular dune · a5e49b88
      Markus Blatt authored
      modul name (lower case with dashes).
      
      These leads to kind of weired variabable names (dune-common_DIR,
      dune-common_LIBRARIES, etc.) but finds non-installes modules
      easier. You just sets CMAKE_PREFIX_PATH to the directory containing
      the modules.
      
      [[Imported from SVN: r6724]]
      a5e49b88
  22. Apr 30, 2012
  23. Apr 29, 2012
    • Markus Blatt's avatar
      Completed adaptation of duneproject. It now creates a complete · 3c418763
      Markus Blatt authored
      infrastructure to use the module with cmake.
      
      Currently, only an installed dune-common can be used, as the others
      lack the cmake confguration files. One has to provide the
      CMAKE_MODULE_PATH pointing to the directory where
      e.g. DuneMacros.cmake is installed (PREFIX/share/cmake/modules) and 
      DuneCommon_DIR pointing to PREFIXlib/cmake.
      
      The ${CMAKE_BINARY_DIR}/config.h.cmake of the project is created such
      that it includes section from modules that it depends on as well as
      the ${CMAKE_SOURCE_DIR}/config.h.cmake. This prevents user from
      creating a full file by hand.
      
      Renamed package configuration files according to the style of the 
      other modules.
      
      [[Imported from SVN: r6661]]
      3c418763
  24. Apr 22, 2012
  25. Apr 20, 2012
  26. Apr 11, 2012
  27. Apr 03, 2012
  28. Mar 14, 2012
    • Christoph Grüninger's avatar
      [CMake] · d0f02ad2
      Christoph Grüninger authored
      Create libdunecommon.la in the right directory.
      
      [[Imported from SVN: r6589]]
      d0f02ad2
  29. Mar 09, 2012
  30. Mar 04, 2012
Loading