Skip to content

Commit d389d93

Browse files
committed
misc: Flake 8
1 parent 8064abc commit d389d93

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

devito/petsc/iet/callback_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ def initial_guesses(self):
8888
@property
8989
def user_struct_callback(self):
9090
return self._user_struct_callback
91-
91+
9292
@property
9393
def solver_parameters(self):
9494
return self.solve_expr.solver_parameters
9595

9696
@property
9797
def field_data(self):
9898
return self.solve_expr.field_data
99-
99+
100100
@property
101101
def formatted_prefix(self):
102102
return self.solve_expr.formatted_prefix

devito/petsc/iet/passes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
)
1010
from devito.symbolics import Byref, Macro, Null, FieldFromPointer
1111
from devito.types.basic import DataSymbol
12-
from devito.tools import frozendict
1312
import devito.logger
1413

1514
from devito.petsc.types import (

devito/petsc/solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def linear_solve_args(self):
120120
exprs = as_tuple(exprs)
121121

122122
funcs = get_funcs(exprs)
123-
self.time_mapper = generate_time_mapper(funcs)
123+
self.time_mapper = generate_time_mapper(exprs)
124124
arrays = self.generate_arrays(target)
125125

126126
exprs = sorted(exprs, key=lambda e: not isinstance(e, EssentialBC))

devito/petsc/types/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class ArgvSymbol(DataSymbol):
327327
@property
328328
def _C_ctype(self):
329329
return POINTER(POINTER(c_char))
330-
330+
331331

332332
class NofSubMats(Scalar, LocalType):
333333
pass

tests/test_petsc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def test_dmda_create():
278278

279279
class TestStruct:
280280
@skipif('petsc')
281-
def test_cinterface_petsc_struct():
281+
def test_cinterface_petsc_struct(self):
282282

283283
grid = Grid(shape=(11, 11), dtype=np.float64)
284284
f = Function(name='f', grid=grid, space_order=2)
@@ -329,7 +329,7 @@ def test_temp_arrays_in_struct(self):
329329
assert 'const PetscInt x_size = ctx0->x_size;' in str(op.ccode)
330330

331331
@skipif('petsc')
332-
def test_parameters():
332+
def test_parameters(self):
333333

334334
grid = Grid((2, 2), dtype=np.float64)
335335

@@ -677,7 +677,7 @@ def test_solve_output():
677677

678678
class TestEssentialBCs:
679679
@skipif('petsc')
680-
def test_essential_bcs():
680+
def test_essential_bcs(self):
681681
"""
682682
Verify that PETScSolve returns the correct output with
683683
essential boundary conditions.

0 commit comments

Comments
 (0)