Python interface: mbc_py_nodal_send() doesn't send labels
It appears that labels are not sent by the mbc_py_nodal_send()
method, when called from the Python interface through mbcNodal.send()
.
Steps to reproduce: with reference to the example springmass, activate the exchange of labels by setting to 1 the labels
flag in springmass.py
and add the corresponding labels, yes
flag in the external structural
force in the MBDyn input file springmass
.
The output shows that the force elements got 4 fewer bytes than it was expecting, corresponding to the size of the labels buffer (one single node) for this case:
...
Eq 36: 0 ClampJoint(0): orientation constraint thetaz
Iteration(0) 0
Step(1:0) t=0.01 dt=0.01
ExtSocketHandler: in AfterPredict
ExtSocketHandler: in Send_pre
ExtSocketHandler: sending when to send data
ExtSocketHandler: sent when to send data
StructExtForce:in Send
ExtSocketHandler: in GetOutFileDes
ExtSocketHandler: in Send_post
ExtSocketHandler: in Recv_pre
StructExtForce(2): recv() failed (got 52 of 56 bytes)
terminate called after throwing an instance of 'ErrGeneric'
what(): [strext.cc:1104,func=virtual void StructExtForce::RecvFromFileDes(int)]