From 52bc14e83e770e5d9407923839309c59cce7a340 Mon Sep 17 00:00:00 2001 From: Alex Fikl <alexfikl@gmail.com> Date: Thu, 8 Mar 2018 16:22:23 -0600 Subject: [PATCH] p2p: fix misplaced end --- .gitignore | 1 + sumpy/p2p.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 71f03d3a..9bae8f40 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,6 @@ doc/_build .cache .DS_Store .ipynb_checkpoints +.pytest_cache sumpy/_git_rev.py diff --git a/sumpy/p2p.py b/sumpy/p2p.py index 2c5d9189..ce9fc2c8 100644 --- a/sumpy/p2p.py +++ b/sumpy/p2p.py @@ -458,8 +458,8 @@ class P2PFromCSR(P2PBase): <> is_self = (isrc == target_to_source[itgt]) """ if self.exclude_self else ""] + loopy_insns + kernel_exprs + + [" end"] + [""" - end result[{i}, itgt] = result[{i}, itgt] + \ knl_{i}_scaling * simul_reduce(sum, isrc, pair_result_{i}) """.format(i=iknl) -- GitLab