Skip to content

Commit

Permalink
compiler: Remove unnecessary multisubdimension rebuild args
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Sep 12, 2024
1 parent 5dd2edf commit 94fd903
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions devito/ir/equations/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,9 @@ def _(d, mapper, rebuilt, sregistry):
except KeyError:
fkwargs.update({'name': sregistry.make_name(prefix=d.functions.name),
'function': None,
'allocator': ExternalAllocator(d.functions.data),
'initializer': lambda x: None})
'allocator': ExternalAllocator(d.functions._data)})

frebuilt = d.functions._rebuild(**fkwargs)
rebuilt[d.functions] = functions = frebuilt
rebuilt[d.functions] = functions = d.functions._rebuild(**fkwargs)

kwargs['functions'] = functions

Expand Down

0 comments on commit 94fd903

Please sign in to comment.