bx2k
bx2k
to_numpy can only be used in fields (ti.Vector.field) or ndarray, while ti.Vector.zero is a temporary variable and can hardly be converted into numpy arrays. Maybe you can try to save...
> Thanks - but I still receive the following error: > > Traceback (most recent call last): File "/taichi/massSpring.py", line 20, in mesh = Patcher.load_mesh(args.model, relations=["FV"]) File "/miniconda3/envs/taichi/lib/python3.10/site-packages/meshtaichi_patcher/**init**.py", line 32,...
ti.max is not atomic and might not work well when writing in parallel. Try to use ti.atomic_max. ```python import taichi as ti import numpy as np ti.init(arch=ti.cuda, default_fp=ti.f32, default_ip=ti.i64) arr...