diff --git a/python/dolfinx_mpc/utils/mpc_utils.py b/python/dolfinx_mpc/utils/mpc_utils.py index 55673419..c7b9a652 100644 --- a/python/dolfinx_mpc/utils/mpc_utils.py +++ b/python/dolfinx_mpc/utils/mpc_utils.py @@ -126,7 +126,7 @@ def tangential_proj(u, n): _fem.petsc.set_bc(b, [bc_deac]) # Solve Linear problem - solver = PETSc.KSP().create(mesh.comm) # type: ignore + solver = PETSc.KSP().create(V.mesh.comm) # type: ignore solver.setType("cg") solver.rtol = 1e-8 solver.setOperators(A)