We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdf9c43 commit 27e0d87Copy full SHA for 27e0d87
1 file changed
devito/petsc/equations.py
@@ -20,13 +20,13 @@ def lower_exprs_petsc(expressions, **kwargs):
20
def constrain_essential_bcs(expressions, **kwargs):
21
"""
22
23
- sregistry = kwargs['sregistry']
24
- new_exprs = []
25
-
26
constrain_expressions = [e for e in expressions if isinstance(e, ConstrainBC)]
27
if not constrain_expressions:
28
return expressions
29
+ sregistry = kwargs.get('sregistry')
+ new_exprs = []
+
30
# TODO: rethink
31
halo_size = {e.target.function._size_halo for e in constrain_expressions}
32
assert len(halo_size) == 1
0 commit comments