diff --git a/python/taichi/examples/simulation/comet.py b/python/taichi/examples/simulation/comet.py index 789711928645e..9033a07faa1d8 100644 --- a/python/taichi/examples/simulation/comet.py +++ b/python/taichi/examples/simulation/comet.py @@ -52,7 +52,7 @@ def substep(): color[i] *= ti.exp(-dt * color_decay) if not all(-0.1 <= x[i] <= 1.1): - ti.deactivate(x.snode.parent(), [i]) + ti.deactivate(x.snode.parent(), [int(i)]) @ti.kernel