Skip to content

Commit

Permalink
Fix sign of Newton iterate - consistent with builtin solver. (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale authored Oct 24, 2024
1 parent 41a9baa commit 89dc592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/demo/demo_plasticity_von_mises.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def sigma_external(derivatives):
external_operator_problem.solve(du)
du.x.scatter_forward()

Du.x.petsc_vec.axpy(-1.0, du.x.petsc_vec)
Du.x.petsc_vec.axpy(1.0, du.x.petsc_vec)
Du.x.scatter_forward()

evaluated_operands = evaluate_operands(F_external_operators)
Expand Down

0 comments on commit 89dc592

Please sign in to comment.