From 80592dff7971ba7028483242a535dd1454853797 Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 4 Aug 2016 22:12:59 -0700 Subject: [PATCH] fix csr solver regression --- opencl_fdfd/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencl_fdfd/ops.py b/opencl_fdfd/ops.py index 8a0cf8b..4f81420 100644 --- a/opencl_fdfd/ops.py +++ b/opencl_fdfd/ops.py @@ -302,7 +302,7 @@ def create_a_csr(context: pyopencl.Context) -> operation: spmv_source = ''' int start = m_row_ptr[i]; int stop = m_row_ptr[i+1]; - dtype dot = zero; + ctype dot = zero; int col_ind, d_ind; for (int j=start; j