Commit edee8976 authored by Nathan Coppin's avatar Nathan Coppin
Browse files

correcting typos

parent 4a7b546f
Pipeline #8520 passed with stages
in 3 minutes and 11 seconds
......@@ -89,7 +89,7 @@ def predictor_corrector_iterate(fluid, particles, dt, min_nsub=1, contact_tol=1e
op0 = np.copy(particles.omega())
seg0 = np.copy(particles.segments())
disk0 = np.copy(particles.disks())
if particles.dimension == 3 :
if particles.dim() == 3 :
tri0 = np.copy(particles.triangles())
......@@ -125,7 +125,7 @@ def predictor_corrector_iterate(fluid, particles, dt, min_nsub=1, contact_tol=1e
particles.set_state(state0)
particles.segments()[:] = seg0
particles.disks()[:] = disk0
if particles.dimension == 3 :
if particles.dim() == 3 :
particles.triangles()[:] = tri0
_advance_particles(particles,(alpha*f0+(1-alpha)*f1),dt,min_nsub,contact_tol,after_sub_iter=after_sub_iter,max_split=max_split)
# Give to the fluid the solid information
......
......@@ -118,7 +118,7 @@ class Weight(unittest.TestCase) :
def accumulate(bnd_forces,nsub) :
bnd_forces += total_boundary_force(p)/nsub
while t < tEnd :
bnd_impulses = np.zeros((2,))
bnd_forces = np.zeros((2,))
time_integration.iterate(None,p,dt,min_nsub=1,external_particles_forces=forces,
after_sub_iter = lambda nsub : accumulate(bnd_forces,nsub))
t += dt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment