Skip to content
Snippets Groups Projects
Commit da55ad7a authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use ADOL-C for derivatives of the rod energy

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.
parent 33fd5621
Branches
No related tags found
1 merge request!67Modernize rod code
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment