From 309b887202e74d0921c697f9be3deffa5fb062b8 Mon Sep 17 00:00:00 2001 From: jorgensd Date: Sat, 28 Oct 2023 14:40:25 +0000 Subject: [PATCH] Fix comm --- python/dolfinx_mpc/utils/mpc_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)