Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2022
1 parent b5d2994 commit 732cc10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/taichi/examples/simulation/karman_vortex_street.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def update_macro_var(self): # compute rho u v
for k in ti.static(range(9)):
self.f_old[i, j][k] = self.f_new[i, j][k]
self.rho[i, j] += self.f_new[i, j][k]
self.vel[i, j] += tm.vec2(self.e[k, 0], self.e[k, 1]) * self.f_new[i, j][k]
self.vel[i, j] += tm.vec2(self.e[k, 0],
self.e[k, 1]) * self.f_new[i, j][k]

self.vel[i, j] /= self.rho[i, j]

Expand Down

0 comments on commit 732cc10

Please sign in to comment.