Skip to content

Commit

Permalink
Mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Nov 19, 2023
1 parent 5132a7d commit f20a914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_nonlinear_assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f20a914

Please sign in to comment.