Commit 856f0d0d authored by Nathan Coppin's avatar Nathan Coppin
Browse files

forgot a detail

parent 6a84bc17
Pipeline #6878 passed with stage
in 2 minutes and 19 seconds
......@@ -37,7 +37,8 @@ def _advance_particles(particles, f, dt, min_nsub,contact_tol,momentum=None,iter
if momentum is not None:
#print(particles.momentum()*nsub/dt)
momentum += particles.momentum()
momentum /= dt
if momentum is not None:
momentum /= dt
def predictor_corrector_iterate(fluid, particles, dt, min_nsub=1, contact_tol=1e-8, external_particles_forces=None, alpha=0.5,momentum=None) :
......
Supports Markdown
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