From 6bd7e7ba5374aa03d2403294932291d94b31e1ae Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 5 Dec 2018 15:49:22 -0600 Subject: [PATCH] Fix recursion in CSE in EvalMapper --- grudge/symbolic/mappers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grudge/symbolic/mappers/__init__.py b/grudge/symbolic/mappers/__init__.py index 64d26c38..76864e7d 100644 --- a/grudge/symbolic/mappers/__init__.py +++ b/grudge/symbolic/mappers/__init__.py @@ -1294,7 +1294,7 @@ class SymbolicEvaluator(pymbolic.mapper.evaluator.EvaluationMapper): ) def map_common_subexpression(self, expr): - return type(expr)(expr.child, expr.prefix, expr.scope) + return type(expr)(self.rec(expr.child), expr.prefix, expr.scope) # }}} -- GitLab