taichi-dev / taichi_elements

High-performance multi-material continuum physics engine in Taichi
MIT License
483 stars 69 forks source link

Add rescale_index() required to support consecutive indices #70

Closed KLozes closed 3 years ago

KLozes commented 3 years ago

Hey! This PR will be required once we switch to consecutive indices https://github.com/taichi-dev/taichi/pull/2327

yuanming-hu commented 3 years ago

I'm not sure what happened but this PR seems a little messy :-) So @Jack12xl and I cleaned this thread up a little bit by squashing a few commits and @Jack12xl carefully confirmed all the demos at the latest commit now work with Taichi 0.7.21 (with rescale_index). A lot of thanks to @KLozes and @Jack12xl for the upgrades and improvements!

Jack12xl commented 3 years ago

Hi, sorry about messing up with your branch. I don't know exactly what happened when I happened to push to your branch, but I would definitely pay attention to this next time 💪