Skip to content

Commit

Permalink
Update firedrake/interpolation.py
Browse files Browse the repository at this point in the history
Co-authored-by: ksagiyam <46749170+ksagiyam@users.noreply.github.com>
  • Loading branch information
2 people authored and JDBetteridge committed Oct 9, 2024
1 parent 0fdb545 commit 4f83ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firedrake/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,5 +1636,5 @@ def multTranspose(self, source_vec, target_vec):
# interpolation matrix will have columns of zeros for the points
# that are not in the immersed mesh. The adjoint interpolation
# matrix will then have rows of zeros for those points.
target_vec.zero()
target_vec.zeroEntries()
self.reduce(source_vec, target_vec)

0 comments on commit 4f83ade

Please sign in to comment.