LocalADOLCStiffness: use "hessian2" instead of "hess_vec"
Compare changes
@@ -110,6 +110,7 @@ assembleGradientAndHessian(const LocalView& localView,
@@ -131,8 +132,109 @@ assembleGradientAndHessian(const LocalView& localView,
With this commit, we do two things:
replace "hess_vec" with a simpler call of "hessian" which calls internally "hess_vec".
use "hessian2" by default instead of "hessian". "hessian2" calls internally "hess_mat" which is faster than "hessian/hess_vec". If the user encounters probems with the new "hessian2" driver, a boolean "useHessian2" can be set to false in the constructor.