From f20a9142c832a6a095908e514b80116b0953c041 Mon Sep 17 00:00:00 2001 From: jorgensd Date: Sun, 19 Nov 2023 11:36:40 +0000 Subject: [PATCH] Mypy --- python/tests/test_nonlinear_assembly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/test_nonlinear_assembly.py b/python/tests/test_nonlinear_assembly.py index 7ec8cdb7..994fc427 100644 --- a/python/tests/test_nonlinear_assembly.py +++ b/python/tests/test_nonlinear_assembly.py @@ -35,7 +35,7 @@ def F(self, x: PETSc.Vec, F: PETSc.Vec): # type: ignore # Apply boundary condition dolfinx_mpc.apply_lifting(F, [self._a], bcs=[self.bcs], - constraint=self.mpc, x0=[x], scale=-1.0) + constraint=self.mpc, x0=[x], scale=dolfinx.default_scalar_type(-1.0)) F.ghostUpdate(addv=PETSc.InsertMode.ADD, mode=PETSc.ScatterMode.REVERSE) # type: ignore dolfinx.fem.petsc.set_bc(F, self.bcs, x, -1.0)