Skip to content

Commit

Permalink
merge with origin
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfer committed May 25, 2021
2 parents 3261926 + 4d4b016 commit 372fd82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/python/mgis/fenics/nonlinear_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ def __init__(self, u, material, quadrature_degree=2, bcs=None):
def form(self, A, P, b, x):
# this function is called before calling F or J
self.update_constitutive_law()
if hasattr(self.solver, "update_pc"):
self.solver.update_pc()
assemble_system(self.tangent_form,
self.residual,
A_tensor=A,
Expand Down

0 comments on commit 372fd82

Please sign in to comment.