From ba06fce37392bcc15d3a4aac0f1974f98c53ef01 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Wed, 29 Apr 2020 21:58:04 -0500 Subject: [PATCH] execution: fix map_if for scalars --- grudge/execution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grudge/execution.py b/grudge/execution.py index fade7fca..7e0a0835 100644 --- a/grudge/execution.py +++ b/grudge/execution.py @@ -132,7 +132,7 @@ class ExecutionMapper(mappers.Evaluator, if isinstance(else_, pyopencl.array.Array): sym_else = var("b")[i] - elif isinstance(then, np.number): + elif isinstance(else_, np.number): sym_else = var("b") else: raise TypeError( -- GitLab