Skip to content

Commit

Permalink
misc: Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Aug 12, 2024
1 parent 22412f3 commit 438fb71
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions devito/ir/iet/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,11 @@ def defines(self):


class FixedArgsCallable(Callable):

"""
A Callable class that enforces a fixed function signature.
"""

pass


Expand Down
2 changes: 1 addition & 1 deletion devito/passes/clusters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
from .implicit import * # noqa
from .misc import * # noqa
from .derivatives import * # noqa
from .unevaluate import * # noqa
from .unevaluate import * # noqa
2 changes: 1 addition & 1 deletion devito/petsc/iet/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from devito.petsc.iet import * # noqa
from devito.petsc.iet import * # noqa
6 changes: 2 additions & 4 deletions devito/petsc/iet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@


def petsc_call(specific_call, call_args):
general_call = 'PetscCall'
return Call(general_call, [Call(specific_call, arguments=call_args)])
return Call('PetscCall', [Call(specific_call, arguments=call_args)])


def petsc_call_mpi(specific_call, call_args):
general_call = 'PetscCallMPI'
return Call(general_call, [Call(specific_call, arguments=call_args)])
return Call('PetscCallMPI', [Call(specific_call, arguments=call_args)])


def petsc_struct(name, fields, liveness='lazy'):
Expand Down

0 comments on commit 438fb71

Please sign in to comment.