Skip to content

Commit 7f72d77

Browse files
committed
fix _constrain_out_of_domain_nodes
1 parent ffe3246 commit 7f72d77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/petsc/solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def _constrain_out_of_domain_nodes(self):
137137
TODO: Cover case where the default "right" staggering is not used.
138138
"""
139139
self.target_exprs = {
140-
t: as_tuple(e) + ((bc,) if (bc := _out_of_domain_bc(t)) else ())
140+
t: as_tuple(e) + ((bc,) if (bc := _out_of_domain_bc(t)) is not None else ())
141141
for t, e in self.target_exprs.items()
142142
}
143143

0 commit comments

Comments
 (0)