Commit 5adbf949 authored by Nathan Coppin's avatar Nathan Coppin
Browse files

allowing by default rotation when friction is enabled

parent 21c7b306
Pipeline #7842 passed with stages
in 3 minutes and 20 seconds
......@@ -92,7 +92,7 @@ class ParticleProblem :
buf = (size*c_int).from_address(ptr)
return np.ctypeslib.as_array(buf)
def __init__(self, dim, friction_enabled=False, rotation_enabled=False) :
def __init__(self, dim, friction_enabled=False, rotation_enabled=True) :
"""Builds the particles contanier structure.
Keyword arguments:
......@@ -104,7 +104,7 @@ class ParticleProblem :
"""
self._dim = dim
self._friction_enabled = friction_enabled
self._rotation_enabled = rotation_enabled
self._rotation_enabled = False if not friction_enabled else rotation_enabled
if dim == 2 :
if friction_enabled:
self._lib = lib2f if rotation_enabled else lib2fwr
......
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