Skip to content
Snippets Groups Projects

Modernize rod code

Merged Sander, Oliver requested to merge modernize-rod-code into master
Compare changes
  • Side-by-side
  • Inline
Files
3
  • da55ad7a
    Previously, the rod3d code used a hand-implemented first derivative
    of the rod energy, and FD for the second derivatives.  This patch
    replaces this by ADOL-C for both first and second derivatives.
    Advantages are:
    * The code is much shorter, and easier to understand.
    * The previous code contained interpolation formulae for
      first-order 1d geodesic finite elements.  This restricted
      rod problems to first-order GFE.  A follow-up patch will
      allow higher-order approximations.
    * The new code runs roughly twice as fast.
Loading