Skip to content

Commit 4d4b016

Browse files
committed
Update for hybrid solver
1 parent 6823aa0 commit 4d4b016

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bindings/python/mgis/fenics/nonlinear_problem.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ def __init__(self, u, material, quadrature_degree=2, bcs=None):
501501
def form(self, A, P, b, x):
502502
# this function is called before calling F or J
503503
self.update_constitutive_law()
504+
if hasattr(self.solver, "update_pc"):
505+
self.solver.update_pc()
504506
assemble_system(self.tangent_form, self.residual, A_tensor=A, b_tensor=b, bcs=self.bcs, x0=x)
505507

506508
def F(self,b,x):

0 commit comments

Comments
 (0)