Skip to content

Commit

Permalink
[misc] fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
izackwu committed Dec 7, 2021
1 parent 60ac7f2 commit b0b24c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 2 additions & 11 deletions misc/demo_warning.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import taichi as ti

x = ti.Vector([2, 3])
x = ti.Vector([2, 2])

x.transposed(x)


@ti.kernel
def func():
x = 0
x = 0.1


func()
ti.dot(x, x)
2 changes: 1 addition & 1 deletion tests/python/test_mpm88.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def substep():
J[p] *= 1 + dt * new_C.trace()
C[p] = new_C

# gui = ti.core.GUI("MPM88", ti.veci(512, 512))
# gui = ti.core.GUI("MPM88", ti.core_veci(512, 512))
# canvas = gui.get_canvas()

for i in range(n_particles):
Expand Down

0 comments on commit b0b24c1

Please sign in to comment.