Skip to content

Commit

Permalink
bug, fixed to copy txz to its buffer
Browse files Browse the repository at this point in the history
Co-authored-by: ITcooker-liu <55828994+ITcooker-liu@users.noreply.github.com>
  • Loading branch information
AmirMardan and ITcooker-liu committed Nov 5, 2024
1 parent 9b98d37 commit 03ba4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PyFWI/wave_propagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ def __kernel_gradient(self, res, s, coeff=-1):
cl.enqueue_copy(self.queue, self.tauz_b, tauz)

tauxz = np.copy(self.W['tauxz'][:, :, s, chpc])
cl.enqueue_copy(self.queue, self.tauz_b, tauxz)
cl.enqueue_copy(self.queue, self.tauxz_b, tauxz)

chpc -= 1

Expand Down

1 comment on commit 03ba4f0

@AmirMardan
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is related to this bug #16 (comment)

Please sign in to comment.