Skip to content

Commit e5c2b72

Browse files
committed
Fix ruff checks
1 parent 47bd72e commit e5c2b72

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

python/dolfinx/fem/function.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from __future__ import annotations
99

10+
import warnings
1011
import typing
1112
from functools import singledispatch
1213

python/test/unit/fem/test_nonlinear_assembler.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ def F_block(self, snes, x, F):
255255
for var in self.soln_vars:
256256
size_local = var.x.petsc_vec.getLocalSize()
257257
var.x.petsc_vec.array[:] = x_array[offset : offset + size_local]
258-
var.x.petsc_vec.ghostUpdate(addv=PETSc.InsertMode.INSERT, mode=PETSc.ScatterMode.FORWARD)
258+
var.x.petsc_vec.ghostUpdate(
259+
addv=PETSc.InsertMode.INSERT, mode=PETSc.ScatterMode.FORWARD
260+
)
259261
offset += size_local
260262

261263
assemble_vector_block(F, self.L, self.a, bcs=self.bcs, x0=x, scale=-1.0)

0 commit comments

Comments
 (0)