""" Add a new equilibrium variable that replaces the specified
""" Add a new equilibrium variable that replaces the specified
default one.
default one.
...
@@ -413,7 +458,9 @@ class MbsEquil(object):
...
@@ -413,7 +458,9 @@ class MbsEquil(object):
Index in ptr of the variable to be exchanged
Index in ptr of the variable to be exchanged
replaced_var_id : int
replaced_var_id : int
Index of the default variable that will be replaced
Index of the default variable that will be replaced
ptr_name : str
(optionnal) Name of the variable to be exchanged
"""
"""
ifself.get_options("nquch"):
ifself.get_options("nquch"):
print("As the number of equilibrium variables is locked in the external memory after the first call of run(), this function can not be called between two run()")
print("As the number of equilibrium variables is locked in the external memory after the first call of run(), this function can not be called between two run()")
...
@@ -425,15 +472,15 @@ class MbsEquil(object):
...
@@ -425,15 +472,15 @@ class MbsEquil(object):
print(">>EQUIL>> variable exchange : Warning ! Generalized coordinates have to be used with caution as exchange variables")
print(">>EQUIL>> variable exchange : Warning ! Generalized coordinates have to be used with caution as exchange variables")
print(">>EQUIL>> extra variable : nxe ("+str(self.get_options("nxe"))+") different from the length of the extra variable list ("+str(len(self.addition_list))+")")
print(">>EQUIL>> extra variable : nxe ("+str(self.get_options("nxe"))+") different from the length of the extra variable list ("+str(len(self.addition_list))+")")