Skip to content

Commit 27e0d87

Browse files
committed
misc: Fix sregistry extraction constrain_essential_bcs
1 parent cdf9c43 commit 27e0d87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

devito/petsc/equations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ def lower_exprs_petsc(expressions, **kwargs):
2020
def constrain_essential_bcs(expressions, **kwargs):
2121
"""
2222
"""
23-
sregistry = kwargs['sregistry']
24-
new_exprs = []
25-
2623
constrain_expressions = [e for e in expressions if isinstance(e, ConstrainBC)]
2724
if not constrain_expressions:
2825
return expressions
2926

27+
sregistry = kwargs.get('sregistry')
28+
new_exprs = []
29+
3030
# TODO: rethink
3131
halo_size = {e.target.function._size_halo for e in constrain_expressions}
3232
assert len(halo_size) == 1

0 commit comments

Comments
 (0)