Skip to content

Commit 3418783

Browse files
committed
potential fix
1 parent 57b3f98 commit 3418783

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fem/PyNucleus_fem/distributed_operators_{SCALAR}.pxi

+2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ cdef class {SCALAR_label}CSR_DistributedLinearOperator({SCALAR_label}Distributed
116116
else:
117117
w = y
118118

119+
w[:] = 0.
119120
for k in range(self.overlap_indices.shape[0]):
120121
i = self.overlap_indices[k]
121122
temp = 0.0
@@ -162,6 +163,7 @@ cdef class {SCALAR_label}CSR_DistributedLinearOperator({SCALAR_label}Distributed
162163
else:
163164
w = resAcc
164165

166+
w[:] = 0.
165167
for k in range(self.overlap_indices.shape[0]):
166168
i = self.overlap_indices[k]
167169
temp = rhs[i]

0 commit comments

Comments
 (0)