Skip to content
Snippets Groups Projects
  1. Mar 07, 2025
  2. Mar 06, 2025
  3. Mar 05, 2025
  4. Mar 03, 2025
  5. Feb 24, 2025
  6. Feb 23, 2025
    • Markus Blatt's avatar
      [dunecontrol] Skip directories without CMake config files for module_DIR · ef4c85ff
      Markus Blatt authored and Christoph Grüninger's avatar Christoph Grüninger committed
      find_package(module) will fail if the directory set with module_DIR
      does not contain CMake configuration file.
      
      Hence the current approach requires that there are pkgconfig files
      installed and found for each module to be used.
      
      With this change we fall back to installed modules if the directory
      does not contain any Cmake configuration files.
      
      This fixes problems with using OPM as DUNE modules (in Debian) which
      stopped shipping broken pkgconf file 2023-09
      ef4c85ff
  7. Feb 22, 2025
  8. Feb 21, 2025
  9. Feb 20, 2025
  10. Feb 18, 2025
  11. Feb 17, 2025
  12. Feb 06, 2025
  13. Feb 05, 2025
    • Santiago Ospina De Los Ríos's avatar
      Fix typo · 373b9675
      Santiago Ospina De Los Ríos authored and Christoph Grüninger's avatar Christoph Grüninger committed
      373b9675
    • Santiago Ospina De Los Ríos's avatar
      Store timer duration in native duration type & Add proper test for timer · fb50e822
      Santiago Ospina De Los Ríos authored and Christoph Grüninger's avatar Christoph Grüninger committed
      Storing duration in doubles is sub-optimal as each cast may incur in truncation.
      Accumulations may also truncate the value further.
      Using the native value preserves the duration unit user request its value in seconds.
      
      Use duration_cast instead of division:
      Interestingly, dividing by 1.0s yields a different (slightly longer) assembly code than when making an explicit cast to seconds.
      The difference seems to me is the cast manages to generate SEE vector registers/instructions.
      fb50e822
    • Carsten Gräser's avatar
      [cleanup] Remove old code in Dune::Timer · 5b13e205
      Carsten Gräser authored and Christoph Grüninger's avatar Christoph Grüninger committed
      `Dune::Timer` includes two alternative implementations
      for measuring time. Historically one was based on `getrusage()`
      and the other one on `std::clock()`. The former was the default
      and the latter could be enabled by defining a macro. Both in fact
      measured the time spend computing by the process.
      
      In `fa43f4bf` the default code path was changed from
      `getrusage()` to `std::chrono::high_resolution_clock::now()`
      while `std::clock()` could still be enabled by the macro.
      This was in fact a breaking change because the new default
      version measures the elapsed real time.
      
      This patch removed the non-default version based on `std::clock` because:
      
      * The breaking change happened almost 11 years so one can consider the
        new behavior the established 'correct' version.
      * The macro switch was neither documented nor tested.
      * Setting the macro manually in user code is error prone.
      * Both versions do completely different things leading to
        different measurements. It's not even clear that one
        produces larger numbers in general:
        `std::clock` adds up time spend computing in all threads of the
        process. Thus time in concurrent threads is added up, while
        the time a thread is sleeping is not counted.
      
      There a minor grain of salt: The documentation still documented
      the old behaviour and instead of 'fixing' the code this patch
      adjusts the documentation to established reality.
      5b13e205
  14. Feb 04, 2025
  15. Feb 03, 2025
  16. Jan 30, 2025
  17. Jan 23, 2025
  18. Jan 21, 2025
  19. Jan 18, 2025
  20. Jan 17, 2025
Loading