Commit 4d90ca3f authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[Ctypes] Issue #177, (13) Lambda are retrieved

parent 1174e5d3
......@@ -466,6 +466,10 @@ class MbsDirdyn(object):
if self.mbs.nqc:
size2 = self.mbs_dirdyn_ptr.contents.buffers[buffer_id].contents.nx+1
self.results.Qc = np.copy(np.ctypeslib.as_array(self.mbs_dirdyn_ptr.contents.buffers[buffer_id].contents.tx ,(size1, size2)))
buffer_id = buffer_id + 1
if self.mbs.nhu:
size2 = self.mbs_dirdyn_ptr.contents.buffers[buffer_id].contents.nx+1
self.results.Lambda = np.copy(np.ctypeslib.as_array(self.mbs_dirdyn_ptr.contents.buffers[buffer_id].contents.tx ,(size1, size2)))
if self.mbs_dirdyn_ptr.contents.user_buffer.contents.nx:
size = self.mbs_dirdyn_ptr.contents.user_buffer.contents.index
......
......@@ -415,6 +415,10 @@ class MbsInvdyn(object):
if self.mbs.nqc:
size2 = self.mbs_invdyn_ptr.contents.buffers[buffer_id].contents.nx+1
self.results.Qc = np.copy(np.ctypeslib.as_array(self.mbs_invdyn_ptr.contents.buffers[buffer_id].contents.tx ,(size1, size2)))
buffer_id = buffer_id + 1
if self.mbs.nhu:
size2 = self.mbs_dirdyn_ptr.contents.buffers[buffer_id].contents.nx+1
self.results.Lambda = np.copy(np.ctypeslib.as_array(self.mbs_dirdyn_ptr.contents.buffers[buffer_id].contents.tx ,(size1, size2)))
if self.mbs_invdyn_ptr.contents.user_buffer.contents.nx:
size = self.mbs_invdyn_ptr.contents.user_buffer.contents.index
......
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