From a26ad506aa5248419a2aa83d46a900fb6ae24f5a Mon Sep 17 00:00:00 2001 From: Taichi Gardener Date: Fri, 15 Oct 2021 05:18:51 +0000 Subject: [PATCH] Auto Format --- examples/simulation/implicit_mass_spring.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/examples/simulation/implicit_mass_spring.py b/examples/simulation/implicit_mass_spring.py index 1474a4091cb80c..61ceebda982ddf 100644 --- a/examples/simulation/implicit_mass_spring.py +++ b/examples/simulation/implicit_mass_spring.py @@ -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]