taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.54k stars 2.29k forks source link

mpm99 #8603

Open Bryan-Wong919 opened 1 day ago

Bryan-Wong919 commented 1 day ago

Hi, in mpm99's g2p procedure, when updating the velocity gradient C, why is the square of the "inverse_dx" not used, because in the following formula, it is the square form. image but in the code only one square of inverse_dx was used: image Looking forward to your early reply!