Commit 609c8410 authored by Max Lyon's avatar Max Lyon

clear triplets before passing them into element for hessian evaluation in finite element problem

parent b8b8eb6d
......@@ -182,6 +182,7 @@ public:
for(unsigned int j=0; j<NV; ++j)
x_[j] = _x[instances_.index(i,j)];
triplets_.clear();
element_.eval_hessian(x_, instances_.c(i), triplets_);
for(unsigned int j=0; j<triplets_.size(); ++j)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment