Skip to content

Commit

Permalink
Update operators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbvh committed Sep 20, 2023
1 parent 3abb3f7 commit d71d366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdgl/finite_volume/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _spmatrix_set_many(spmatrix, i, j, x):
offsets, (i, j, M, N) = _get_spmatrix_offsets_cupy(spmatrix, i, j)

mask = offsets > -1
spmatrix.data[mask] = x[mask]
spmatrix.data[offsets[mask]] = x[mask]
if not mask.all():
# only insertions remain
mask = ~mask
Expand Down

0 comments on commit d71d366

Please sign in to comment.