From 64660380e2b194f97cd7120c4e73342d93f8725c Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 15 May 2015 19:47:38 -0500 Subject: [PATCH] Allow input vectors with offsets in discretization connection kernel --- meshmode/discretization/connection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meshmode/discretization/connection.py b/meshmode/discretization/connection.py index 3f161417..996f08e5 100644 --- a/meshmode/discretization/connection.py +++ b/meshmode/discretization/connection.py @@ -151,9 +151,11 @@ class DiscretizationConnection(object): * vec[source_element_indices[k], j])", [ lp.GlobalArg("result", None, - shape="nelements_result, n_to_nodes"), + shape="nelements_result, n_to_nodes", + offset=lp.auto), lp.GlobalArg("vec", None, - shape="nelements_vec, n_from_nodes"), + shape="nelements_vec, n_from_nodes", + offset=lp.auto), lp.ValueArg("nelements_result", np.int32), lp.ValueArg("nelements_vec", np.int32), "...", -- GitLab