Skip to content
Snippets Groups Projects
  • Sander, Oliver's avatar
    da55ad7a
    Use ADOL-C for derivatives of the rod energy · da55ad7a
    Sander, Oliver authored
    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.
    da55ad7a
    History
    Use ADOL-C for derivatives of the rod energy
    Sander, Oliver authored
    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.