Skip to content

Commit

Permalink
[Misc] explicitly cast indices to int32 in snode_deactivate to preven…
Browse files Browse the repository at this point in the history
…t TaichiWarning
  • Loading branch information
bluevisor authored Nov 10, 2024
1 parent e9f19b8 commit b38aceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/taichi/_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ def field_fill_python_scope(F: template(), val: template()):
@kernel
def snode_deactivate(b: template()):
for I in grouped(b):
deactivate(b, I)
deactivate(b, [int(i) for i in I])


@kernel
def snode_deactivate_dynamic(b: template()):
for I in grouped(b.parent()):
deactivate(b, I)
deactivate(b, [int(i) for i in I])


@kernel
Expand Down

0 comments on commit b38aceb

Please sign in to comment.