Re-initializing Model:
Posted: Sun Oct 06, 2019 3:54 pm
Hi,
I am trying to change the parameters of some objects in my model during integration of the equations. Following is a snippet of the code I am using. After time t=1, I change the properties of HuntCrossley force and then re-initialize the model so the new values assume after that.
My problem is that the integration aborts at the line 'si = osimModel.initSystem();' with a generic error message that reads in part: "(process 14144) exited with code -1073741819." Am I doing this wrongly? Could someone give me guidance on the correct way to do this?
Thanks.
I am trying to change the parameters of some objects in my model during integration of the equations. Following is a snippet of the code I am using. After time t=1, I change the properties of HuntCrossley force and then re-initialize the model so the new values assume after that.
My problem is that the integration aborts at the line 'si = osimModel.initSystem();' with a generic error message that reads in part: "(process 14144) exited with code -1073741819." Am I doing this wrongly? Could someone give me guidance on the correct way to do this?
Thanks.