but I get the following error messages:
For: [Taichi] version 0.8.11, latest version 0.9.1, llvm 10.0.0, commit 9d0973e5, linux, python 3.7.11:
Traceback (most recent call last):
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/kernel_impl.py", line 461, in taichi_ast_generator
transform_tree(tree, ctx)
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/transform.py", line 6, in transform_tree
ASTTransformer()(ctx, tree)
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/ast_transformer_utils.py", line 27, in __call__
raise e.with_traceback(None)
taichi.lang.exception.TaichiCompilationError: On line 1230 of file "/home/tomasz/Documents/Master_thesis/rl-taichi/rl-taichi/engine/mpm_solver.py":
ti.deactivate(self.x.loop_range().parent().snode(), [])
Traceback (most recent call last):
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/ast_transformer_utils.py", line 24, in __call__
return method(ctx, node)
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/ast_transformer.py", line 521, in build_Attribute
node.ptr = getattr(node.value.ptr, node.attr)
AttributeError: 'taichi._lib.core.taichi_core.Expr' object has no attribute 'parent'
For: [Taichi] version 0.9.1, latest version 0.9.1, llvm 10.0.0, commit 9d0973e5, linux, python 3.7.11:
Traceback (most recent call last):
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/kernel_impl.py", line 477, in taichi_ast_generator
transform_tree(tree, ctx)
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/transform.py", line 6, in transform_tree
ASTTransformer()(ctx, tree)
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/ast_transformer_utils.py", line 23, in __call__
raise e.with_traceback(None)
taichi.lang.exception.TaichiCompilationError: On line 1230 of file "/home/tomasz/Documents/Master_thesis/rl-taichi/rl-taichi/engine/mpm_solver.py", in clear_particles:
ti.deactivate(self.x.loop_range().parent().snode(), [])
Traceback (most recent call last):
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/ast_transformer_utils.py", line 20, in __call__
return method(ctx, node)
File "/home/tomasz/anaconda3/envs/taichi/lib/python3.7/site-packages/taichi/lang/ast/ast_transformer.py", line 578, in build_Attribute
node.ptr = getattr(node.value.ptr, node.attr)
AttributeError: 'MatrixField' object has no attribute 'loop_range'
I tried to delete the particles manually, and a new cube:
Hi Taichi community,
I was trying to iteratively eliminate particles in a mpm simulation. with the clear_particle kernel: https://github.com/taichi-dev/taichi_elements/blob/f41d5decb4884c524a4d0f1e4d5dc4646f193b02/engine/mpm_solver.py#L1191
with the following code:
but I get the following error messages: For: [Taichi] version 0.8.11, latest version 0.9.1, llvm 10.0.0, commit 9d0973e5, linux, python 3.7.11:
For: [Taichi] version 0.9.1, latest version 0.9.1, llvm 10.0.0, commit 9d0973e5, linux, python 3.7.11:
I tried to delete the particles manually, and a new cube:
but then I probably eliminate something too much of it since it crushes:
If anybody has an idea, thank you kindly in advance!