Skip to content

Commit

Permalink
Auto Format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed Oct 15, 2021
1 parent 0b948d8 commit a26ad50
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions examples/simulation/implicit_mass_spring.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ def __init__(self, N):
self.gravity = ti.Vector([0.0, -2.0])
self.init_pos()
self.init_edges()
self.MassBuilder = ti.linalg.SparseMatrixBuilder(2 * self.NV,
2 * self.NV,
max_num_triplets=10000)
self.MassBuilder = ti.linalg.SparseMatrixBuilder(
2 * self.NV, 2 * self.NV, max_num_triplets=10000)
self.DBuilder = ti.linalg.SparseMatrixBuilder(2 * self.NV,
2 * self.NV,
max_num_triplets=10000)
2 * self.NV,
max_num_triplets=10000)
self.KBuilder = ti.linalg.SparseMatrixBuilder(2 * self.NV,
2 * self.NV,
max_num_triplets=10000)
2 * self.NV,
max_num_triplets=10000)
self.init_mass_sp(self.MassBuilder)
self.M = self.MassBuilder.build()
self.fix_vertex = [self.N, self.NV - 1]
Expand Down

0 comments on commit a26ad50

Please sign in to comment.