Skip to content
Snippets Groups Projects
  1. Dec 26, 2014
  2. Dec 19, 2014
  3. Dec 18, 2014
    • Jö Fahlke's avatar
      14cbee71
    • 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
  4. Dec 12, 2014
  5. Dec 11, 2014
  6. Dec 08, 2014
  7. Dec 05, 2014
  8. Dec 02, 2014
  9. Dec 01, 2014
  10. Nov 28, 2014
  11. Nov 26, 2014
  12. Nov 25, 2014
  13. Nov 23, 2014
  14. Nov 21, 2014
  15. Nov 19, 2014
  16. Nov 15, 2014
  17. Nov 13, 2014
    • Jö Fahlke's avatar
      [doc][stackobject_to_shared_ptr()] Improve documentation. · 770f3ba9
      Jö Fahlke authored
      Add "@relatesalso null_deleter", this includes the documentation for the
      function with null_deleter but also leaves a standalone version.  Document
      what is so special about the shared_ptr the function returns.  Mention the
      #include needed to get the function.
      770f3ba9
  18. Nov 08, 2014
  19. Nov 07, 2014
  20. Nov 06, 2014
    • Oliver Sander's avatar
      Rip out the complete test for eigenValuesNonSym and replace it by the Rosser... · b9e712ac
      Oliver Sander authored
      Rip out the complete test for eigenValuesNonSym and replace it by the Rosser matrix test from fieldmatrixtest.cc
      
      The old test was complete nonsense: an implementation of some sort of strange
      undocumented shape function set that happened to need eigenvalues for something.
      Lots of undocumented code, and no checks at all whether the values obtained
      by eigenValuesNonSym actually make sense.
      
      Only, for the particular choice of parameters used, eigenValuesNonSym was never
      called.  Yes, you read this correctly: these hundreds of lines of code didn't
      actually test anything.
      
      The new test is copied form fieldmatrixtest.cc and adapted for DynamicMatrix
      types.  It computes eigenvalues of a given 8x8 matrix and compares with the known
      results.  Unfortunately, the test matrix is only symmetric.  Tests with more
      general matrices are left for another day.
      b9e712ac
    • Oliver Sander's avatar
      eigenValuesNonSym: Set size of the output vector before filling it · da604ca5
      Oliver Sander authored
      Rather than assuming the caller has set it to the correct size already.
      Setting the size in the method eigenValuesNonSym itself makes code
      more robust.  Plus, the time needed for that should be negligible
      compared to the actual eigenvalue computations.
      da604ca5
Loading