We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffe3246 commit 7f72d77Copy full SHA for 7f72d77
1 file changed
devito/petsc/solve.py
@@ -137,7 +137,7 @@ def _constrain_out_of_domain_nodes(self):
137
TODO: Cover case where the default "right" staggering is not used.
138
"""
139
self.target_exprs = {
140
- t: as_tuple(e) + ((bc,) if (bc := _out_of_domain_bc(t)) else ())
+ t: as_tuple(e) + ((bc,) if (bc := _out_of_domain_bc(t)) is not None else ())
141
for t, e in self.target_exprs.items()
142
}
143
0 commit comments