Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmaddison committed Jul 18, 2024
1 parent 7a251ab commit 924dd7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tlm_adjoint/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def garbage_cleanup(comm=None):
for comm in petsc_comms:
comm.destroy()


def weakref_method(fn, obj):
if not hasattr(obj, "_tlm_adjoint__weakref_method_self_ref"):
obj._tlm_adjoint__weakref_method_self_ref = weakref.ref(obj)
Expand Down

0 comments on commit 924dd7a

Please sign in to comment.