Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update examples/python/bpsraw.py
Co-authored-by: Jeremy L Thompson <[email protected]>
  • Loading branch information
tylercollins5737 and jeremylt authored May 22, 2025
commit c38745099051e5a26a423d507c4da63820f1ab28
1 change: 1 addition & 0 deletions examples/python/bpsraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def mult(self, A: PETSc.Mat, x: PETSc.Vec, y: PETSc.Vec):
self._xglob[lo:hi] = x.array_r
self.u.set_array(self._xglob,cmode=libceed.USE_POINTER)
self.v.set_value(0.0)

self.op.apply(self.u, self.v)
with self.v.array_read() as va:
y.setValues(range(lo, hi), va[lo:hi])
Expand Down