Commit 7b737faf authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

no n^2 for _fc

parent 44fa73d6
Pipeline #5197 passed with stage
in 25 seconds
......@@ -168,6 +168,8 @@ class ParticleProblem :
return np.array([],np.int32)
def previousContactForces(self):
if self._fc is None:
self._fc = np.zeros_like(self.velocity())
def set_boundary_velocity(self, tag, v) :
......@@ -352,7 +354,6 @@ class ParticleProblem :
tag -- particle tag
self._lib.particleProblemAddParticle(self._p, self._coord_type(*x), c_double(r), c_double(m), tag.encode())
self._fc = np.zeros_like(self.velocity())
def set_use_queue(self, use_queue=1):
"""Enables the use of the queue if 1 and disables it if 0."""
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