Commit 09de25e9 authored by Louis Beauloye's avatar Louis Beauloye
Browse files

remove dict creation in module

parent cd2fa121
......@@ -129,10 +129,6 @@ class MbsDirdyn(object):
else:
self.symbolic_path = symbolic_path
# dictionary containing the pointers to avoid garbage collecting
self.mbs.ptrs_to_user_fcts = dict()
self.mbs.ptrs_to_symb_fcts = dict()
# Storing project function pointer
self.user_fun_list = ['cons_hJ', 'cons_jdqd', 'derivative', 'DrivenJoints', 'ExtForces', 'JointForces',
'LinkForces', 'Link3DForces', 'dirdyn_init', 'dirdyn_loop', 'dirdyn_finish']
......
......@@ -94,10 +94,6 @@ class MbsEquil(object):
else:
self.symbolic_path = symbolic_path
# dictionary containing the pointers to avoid garbage collecting
self.mbs.ptrs_to_user_fcts = dict()
self.mbs.ptrs_to_symb_fcts = dict()
self.user_fun_list = ['cons_hJ', 'cons_jdqd', 'derivative', 'DrivenJoints', 'ExtForces', 'JointForces',
'LinkForces', 'Link3DForces', 'equil_init', 'equil_loop', 'equil_finish', 'equil_fxe']
self.symb_fun_list = ['accelred', 'cons_hJ', 'cons_jdqd', 'invdyna', 'dirdyna', 'extforces', 'gensensor',
......
......@@ -111,10 +111,6 @@ class MbsInvdyn(object):
else:
self.symbolic_path = symbolic_path
# dictionary containing the pointers to avoid garbage collecting
self.mbs.ptrs_to_user_fcts = dict()
self.mbs.ptrs_to_symb_fcts = dict()
self.user_fun_list = ['cons_hJ', 'cons_jdqd', 'derivative', 'DrivenJoints', 'ExtForces', 'JointForces',
'LinkForces', 'Link3DForces']
self.symb_fun_list = ['accelred', 'cons_hJ', 'cons_jdqd', 'invdyna', 'dirdyna', 'extforces', 'gensensor',
......
......@@ -107,10 +107,6 @@ class MbsModal(object):
else:
self.symbolic_path = symbolic_path
# dictionary containing the pointers to avoid garbage collecting
self.mbs.ptrs_to_user_fcts = dict()
self.mbs.ptrs_to_symb_fcts = dict()
self.user_fun_list = ['cons_hJ', 'cons_jdqd', 'derivative', 'DrivenJoints', 'ExtForces', 'JointForces',
'LinkForces', 'Link3DForces']
self.symb_fun_list = ['accelred', 'cons_hJ', 'cons_jdqd', 'invdyna', 'dirdyna', 'extforces', 'gensensor',
......
......@@ -118,10 +118,6 @@ class MbsPart(object):
else:
self.symbolic_path = symbolic_path
# pointers list to avoid garbage collecting
self.mbs.ptrs_to_user_fcts = dict()
self.mbs.ptrs_to_symb_fcts = dict()
# Storing project function pointer
# self.user_cons_hJ = None
# self.mbs_cons_hJ = None
......
......@@ -90,10 +90,6 @@ class MbsSolvekin(MbsInvdyn):
else:
self.symbolic_path = symbolic_path
# dictionary containing the pointers to avoid garbage collecting
self.mbs.ptrs_to_user_fcts = dict()
self.mbs.ptrs_to_symb_fcts = dict()
self.user_fun_list = ['cons_hJ', 'cons_jdqd', 'derivative', 'DrivenJoints', 'ExtForces', 'JointForces',
'LinkForces', 'Link3DForces']
self.symb_fun_list = ['accelred', 'cons_hJ', 'cons_jdqd', 'invdyna', 'dirdyna', 'extforces', 'gensensor',
......
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