From bccba13260d6facea35d28e8d412b9f563cc864b Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Thu, 18 Jul 2019 18:30:06 -0500 Subject: [PATCH] DirectDiscretizationConnection: make sure result has a queue --- meshmode/discretization/connection/direct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshmode/discretization/connection/direct.py b/meshmode/discretization/connection/direct.py index 8ba6d097..20f5cdb9 100644 --- a/meshmode/discretization/connection/direct.py +++ b/meshmode/discretization/connection/direct.py @@ -372,7 +372,7 @@ class DirectDiscretizationConnection(DiscretizationConnection): raise TypeError("non-array passed to discretization connection") if self.is_surjective: - result = self.to_discr.empty(dtype=vec.dtype) + result = self.to_discr.empty(queue, dtype=vec.dtype) else: result = self.to_discr.zeros(queue, dtype=vec.dtype) -- GitLab