1. 12 Mar, 2019 4 commits
    • Carsten Gräser's avatar
      [!119] [cleanup] Remove some very old code · 3861e60b
      Carsten Gräser authored
      Merge branch 'feature/remove-old-code' into 'master'
      
      ref:core/dune-localfunctions This was commented out using `#if 0 // OLD OLD`
      nine years ago. It seems that it's now aged enough to be removed.
      
      See merge request [!119]
      
        [!119]: gitlab.dune-project.org/core/dune-localfunctions/merge_requests/119
      3861e60b
    • Carsten Gräser's avatar
      [cleanup] Remove some very old code · 46482310
      Carsten Gräser authored
      This was commented out using `#if 0 // OLD OLD` nine years ago.
      It seems that it's now aged enough to be removed.
      46482310
    • Carsten Gräser's avatar
      [!118] Hide Dune::DerivativeLayout in namespace · 626c1b70
      Carsten Gräser authored
      Merge branch 'feature/hide-enum-dune-derivative' into 'master'
      
      ref:core/dune-localfunctions The 'generic' local finite element
      implementations based on the framework in utility/ define an
      `enum DerivativeLayout {value, derivative}` in the namespace Dune. By putting
      this into a seperate namespace Dune::DerivativeLayoutNS:: we can avoid
      cluttering the namespace Dune:: with Dune::derivative and Dune::value.
      
      See merge request [!118]
      
        [!118]: gitlab.dune-project.org/core/dune-localfunctions/merge_requests/118
      626c1b70
    • Carsten Gräser's avatar
      Hide Dune::DerivativeLayout in namespace · df5da783
      Carsten Gräser authored
      The 'generic' local finite element implementations
      based on the framework in `utility/` define an
      `enum DerivativeLayout {value, derivative}` in the
      namespace `Dune`. By putting this
      into a seperate namespace `Dune::DerivativeLayoutNS::`
      we can avoid cluttering the namespace `Dune::` with
      `Dune::derivative` and `Dune::value`.
      df5da783
  2. 10 Jan, 2019 2 commits
    • Carsten Gräser's avatar
      [!115] Disable floating point exceptions for clang · 9c04ebe1
      Carsten Gräser authored
      Merge branch 'feature/disable-fp-exception-with-clang' into 'master'
      
      ref:core/dune-localfunctions When compiling with -O3 clang versions \>= 5.0
      may generate code containing auxiliary operations dividing by zero altough the
      result is not used. Specifically code like this
      
          for (int i=0; i<=3; i++)
            for (int j=0; j<=3; j++)
              for (int k=0; k<=3; k++)
                if ((m!=i) && (m!=j) && (m!=k))
                  z += x*(1.0/(m-k))*(1.0/(m-j))*(1.0/(m-i));
      
      should never devide by zero. While the result of the code is correct with
      clang, it seems to produce additional operations for the ruled out cases where
      we would devide by zero. For more details see the clang bug:
      [https://bugs.llvm.org/show_bug.cgi?id=40280]
      
      The only possible solution on our side is to turn of FP exceptions for clang.
      This hoefully fixes [#13].
      
      See merge request [!115]
      
        [https://bugs.llvm.org/show_bug.cgi?id=40280]: https://bugs.llvm.org/show_bug.cgi?id=40280
        [#13]: gitlab.dune-project.org/NoneNone/issues/13
        [!115]: gitlab.dune-project.org/core/dune-localfunctions/merge_requests/115
      
      
      Closes #13
      9c04ebe1
    • Carsten Gräser's avatar
      Disable floating point exceptions for clang · 0bb9ba40
      Carsten Gräser authored
      When compiling with `-O3` clang versions >= 5.0 may
      generate code containing auxiliary operations dividing
      by zero altough the result is not used. Specifically code like this
      
      ```cpp
      for (int i=0; i<=3; i++)
        for (int j=0; j<=3; j++)
          for (int k=0; k<=3; k++)
            if ((m!=i) && (m!=j) && (m!=k))
              z += x*(1.0/(m-k))*(1.0/(m-j))*(1.0/(m-i));
      ```
      
      should never devide by zero. While the result of the code
      is correct with clang, it seems to produce additional
      operations for the ruled out cases where we would devide by zero.
      For more details see the clang bug: https://bugs.llvm.org/show_bug.cgi?id=40280
      
      The only possible solution on our side is to turn of FP exceptions
      for clang.
      0bb9ba40
  3. 31 Dec, 2018 2 commits
  4. 29 Dec, 2018 1 commit
  5. 16 Dec, 2018 4 commits
  6. 06 Dec, 2018 3 commits
  7. 02 Jul, 2018 1 commit
  8. 26 Apr, 2018 2 commits
  9. 25 Apr, 2018 2 commits
    • Ansgar Burchardt's avatar
      Merge branch 'feature/do-not-catch-polymorphic-type' into 'master' · d17214fc
      Ansgar Burchardt authored
      do not catch exceptions in main()
      
      See merge request !107
      d17214fc
    • Ansgar Burchardt's avatar
      do not catch exceptions in main() · 497d7846
      Ansgar Burchardt authored
      An uncaught exception will result in the test failing.  There is no
      need to explicitly catch them.
      
      Removing the exception handler also addresses the following compiler
      warnings from GCC 8:
      
          test-biorthogonality.cc:215:23: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      
          refinedelementtest.cc:34:24: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      
          brezzidouglasmarinielementtest.cc:37:24: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      
          rannacherturekelementtest.cc:26:24: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      
          virtualshapefunctiontest.cc:160:18: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      
          raviartthomaselementtest.cc:53:24: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      
          hierarchicalelementtest.cc:35:24: warning:
          catching polymorphic type ‘class Dune::Exception’ by value [-Wcatch-value=]
      497d7846
  10. 13 Apr, 2018 2 commits
  11. 09 Apr, 2018 2 commits
  12. 08 Apr, 2018 15 commits