taichi-dev / taichi

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

https://github.com/taichiCourse01/taichi_sph #8047

Open baaiy0610 opened 1 year ago

baaiy0610 commented 1 year ago

Hello, when i run this demo code, it shows module 'taichi' has no attribute 'ext_arr'

[Taichi] version 1.6.0, llvm 15.0.5, commit f1c6fbbd, osx, python 3.9.7 Traceback (most recent call last): File "/Users/baiyang/Desktop/project/simulation/sph/taichi_sph/demo.py", line 3, in from particle_system import ParticleSystem File "/Users/baiyang/Desktop/project/simulation/sph/taichi_sph/particle_system.py", line 7, in class ParticleSystem: File "/Users/baiyang/Desktop/project/simulation/sph/taichi_sph/particle_system.py", line 69, in ParticleSystem new_particles_positions: ti.ext_arr(), File "/opt/anaconda3/lib/python3.9/site-packages/taichi/init.py", line 22, in getattr raise AttributeError(f"module '{name}' has no attribute '{attr}'") AttributeError: module 'taichi' has no attribute 'ext_arr'

erizmr commented 1 year ago

Hi @baaiy0610 , the sph implementation you use is outdated. Please check the repo https://github.com/erizmr/SPH_Taichi for a latest version.