From 3775ed9e5645f22c00145d41260e3727a97a1749 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 12 Feb 2018 16:21:46 -0600 Subject: [PATCH] Fix string format brace escaping in generalized P2P --- sumpy/p2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/p2p.py b/sumpy/p2p.py index c0542c62..c18b6c54 100644 --- a/sumpy/p2p.py +++ b/sumpy/p2p.py @@ -210,7 +210,7 @@ class P2P(SingleSrcTgtListP2PBase): def get_result_store_instructions(self): return [""" result[{i}, itgt] = knl_{i}_scaling \ - * simul_reduce(sum, isrc, pair_result_{i}) {inames=itgt} + * simul_reduce(sum, isrc, pair_result_{i}) {{inames=itgt}} """.format(i=iknl) for iknl in range(len(self.kernels))] -- GitLab