Commit d88f1ea9 authored by Matthieu Constant's avatar Matthieu Constant
Browse files

fix external force error

parent abaa75b1
Pipeline #5684 passed with stage
in 2 minutes and 10 seconds
......@@ -84,7 +84,7 @@ def iterate(fluid, particles, dt, min_nsub=1, contact_tol=1e-8, external_particl
"""
if particles is None and fluid is None:
raise ValueError("fluid and particles are both None: not possible to iterate!")
if particles is not None:
if particles is not None and external_particles_forces is not None:
if external_particles_forces.shape!=particles.velocity().shape:
raise ValueError("external_particles_forces must have shape (number of particles,dimension!")
if particles is None and fluid is not 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