From 4507c0a25679643c1f56f2249f53fe7f97ae2e19 Mon Sep 17 00:00:00 2001
From: Alex Fikl <alexfikl@gmail.com>
Date: Wed, 27 Jun 2018 21:18:16 -0500
Subject: [PATCH] fix method call

---
 sumpy/tools.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sumpy/tools.py b/sumpy/tools.py
index bf57b0fb..4a5ab86a 100644
--- a/sumpy/tools.py
+++ b/sumpy/tools.py
@@ -449,7 +449,8 @@ class MatrixBlockIndex(object):
             raise ValueError("CL `Array`s are not supported."
                     "Use MatrixBlockIndex.get() and then view into matrices.")
 
-        return x[np.ix_(*self.block_indices)]
+        irow, icol = self.block_indices(i)
+        return x[np.ix_(irow, icol)]
 
     def block_take(self, x, i):
         """Retrieve a block from a linear representation of the matrix blocks.
-- 
GitLab