Open bluevisor opened 2 weeks ago
This PR addresses a Taichi warning in _kernels.py that occurs during implicit casting in the snode_deactivate function. The warning was as follows:
_kernels.py
snode_deactivate
TaichiWarning: Field index not int32, casting into int32 implicitly
I
int32
deactivate
Explicitly casting to int32 prevents the warning and ensures that the code adheres to expected data types.
Summary
This PR addresses a Taichi warning in
_kernels.py
that occurs during implicit casting in thesnode_deactivate
function. The warning was as follows:Changes Made
snode_deactivate
to explicitly cast each element inI
toint32
before callingdeactivate
, which suppresses the implicit casting warning.Rationale
Explicitly casting to
int32
prevents the warning and ensures that the code adheres to expected data types.Testing
snode_deactivate
.snode_deactivate
still functions as expected post-update.