Commit d94fa9e4 authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[MBsysPy][MbsDirdyn][Oneshot] mismatch between float and double, plus args ordering.

parent d4ff5d94
......@@ -157,8 +157,8 @@ libmodules.mbs_dirdyn_init.restype = ctypes.c_int
libmodules.mbs_dirdyn_loop.argtypes = [ctypes.POINTER(MbsDirdyn_c), ctypes.POINTER(MbsData_c)]
libmodules.mbs_dirdyn_loop.restype = ctypes.c_int
libmodules.mbs_fct_dirdyn.argtypes = [ctypes.c_float, ctypes.POINTER(ctypes.c_float),
ctypes.POINTER(ctypes.c_float),
libmodules.mbs_fct_dirdyn.argtypes = [ctypes.c_double, ctypes.POINTER(ctypes.c_double),
ctypes.POINTER(ctypes.c_double),
ctypes.POINTER(MbsData_c), ctypes.POINTER(MbsDirdyn_c)]
libmodules.mbs_fct_dirdyn.restype = ctypes.c_int
......
......@@ -226,8 +226,8 @@ class MbsDirdyn(object):
error = libmodules.mbs_fct_dirdyn(self.mbs_dirdyn_ptr.contents.tsim,
self.mbs_dirdyn_ptr.contents.y,
self.mbs_dirdyn_ptr.contents.yd,
self.mbs_dirdyn_ptr,
self.mbs.mbs_data_ptr
self.mbs.mbs_data_ptr,
self.mbs_dirdyn_ptr
)
if (error >= 0 and self.get_options("save2file")):
......
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