Commit e54f702c authored by Martin Bauer's avatar Martin Bauer
Browse files

Using new indexed kernels in lbmpy boundary handling

parent f58ed945
......@@ -279,7 +279,8 @@ def resolveFieldAccesses(astNode, readOnlyFieldNames=set(), fieldToBasePointerIn
return visitSympyExpr(result, enclosingBlock, sympyAssignment)
newArgs = [visitSympyExpr(e, enclosingBlock, sympyAssignment) for e in expr.args]
kwargs = {'evaluate': False} if type(expr) is sp.Add or type(expr) is sp.Mul else {}
kwargs = {'evaluate': False} if type(expr) in (sp.Add, sp.Mul, sp.Piecewise) else {}
return expr.func(*newArgs, **kwargs) if newArgs else expr
def visitNode(subAst):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment