Skip to content

Commit

Permalink
[1D] Only reset Jacobian age after successful *steady-state* solve
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Mar 25, 2016
1 parent f0a1e25 commit 39a6819
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/oneD/MultiNewton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ int MultiNewton::solve(doublereal* x0, doublereal* x1,
copy(x1, x1 + m_n, m_x.begin());
} else if (m == 1) {
// convergence
jac.setAge(0); // for efficient sensitivity analysis
if (rdt == 0) {
jac.setAge(0); // for efficient sensitivity analysis
}
break;
} else if (m < 0) {
// If dampStep fails, first try a new Jacobian if an old one was
Expand Down

0 comments on commit 39a6819

Please sign in to comment.