Skip to content

Commit

Permalink
fix of beuler res
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Apr 19, 2018
1 parent 4e3055d commit 28637d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ template <class T> void integrate(pVector<T> &x) {
adlinsolve<T>(J, y);
#endif
pVector<T> res(dim);
res = Jold * y + yold;
res = Jold * y - yold;
#ifdef DBUG
cout << "Norm(y): " << y.norm() << endl << " y: " << y << endl;
cout << "|Ax - b| " << res.norm() << endl;
Expand Down

0 comments on commit 28637d9

Please sign in to comment.