Skip to content

Commit a5a07c5

Browse files
committed
Fixed typo in transpose_2d_kernel and matvec_2d_kernel arguments
1 parent 0f6d1f7 commit a5a07c5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

psydac/linalg/stencil_dot_kernels.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def matvec_1d_kernel(mat: 'float[:, :]',
2626
out[p_out + i1_loc] = val
2727

2828

29-
def matvec_2d_kernel(mat: 'float[:, :, :, :, :]',
29+
def matvec_2d_kernel(mat: 'float[:, :, :, :]',
3030
x: 'float[:, :]',
3131
out: 'float[:, :]',
3232
s_in: 'int[:]',
@@ -112,7 +112,8 @@ def matvec_2d_kernel(mat: 'float[:, :, :, :, :]',
112112
val += mat[p_out[0] + i1_loc,
113113
p_out[1] + i2_loc,
114114
d1, d2] * x[i1 + d1 - s_in[0],
115-
i2 + d2 - s_in[1]]
115+
i2 + d2 - s_in[1]]
116+
116117
out[p_out[0] + i1_loc,
117118
p_out[1] + i2_loc] = val
118119

psydac/linalg/stencil_transpose_kernels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def transpose_1d_kernel(mat: 'float[:, :]',
2424

2525
matT[p_out + i1_loc, d1] = mat[p_in + j1_loc, p_out + i1 - j1]
2626

27-
def transpose_2d_kernel(mat: 'float[:, :, :, :, :]',
28-
matT: 'float[:, :, :, :, :]',
27+
def transpose_2d_kernel(mat: 'float[:, :, :, :]',
28+
matT: 'float[:, :, :, :]',
2929
s_in: 'int[:]', # refers to matT
3030
p_in: 'int[:]',
3131
add: 'int[:]',

0 commit comments

Comments
 (0)