Unising Matlab with OpenSim API in High Performance Computing clusters

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

Re: Unising Matlab with OpenSim API in High Performance Computing clusters

Post by Thomas Uchida » Wed Aug 15, 2018 12:42 pm

Is there a way to control where these files are output?
I don't think so; they are written to OpenSim's working directory. I think you need to run from a different directory on each thread.

User avatar
Tom Augenstein
Posts: 38
Joined: Thu May 03, 2018 8:19 am

Re: Unising Matlab with OpenSim API in High Performance Computing clusters

Post by Tom Augenstein » Wed Aug 15, 2018 2:05 pm

Ok, I see. I just did that and it worked. Thanks

User avatar
z imn
Posts: 35
Joined: Sun Sep 17, 2017 7:11 am

Re: Unising Matlab with OpenSim API in High Performance Computing clusters

Post by z imn » Wed Sep 04, 2019 6:40 am

Hello,

I have the same problem in parallel processing with opensim API. how can i run the code from different directories in each trial?
i used the below code but i have the same issue yet.

parfor i=1:2
mkdir(['P:\...\a' int2str(i) ]);
cd (['P:\...\a' int2str(i) ]);
import org.opensim.modeling.*
osimModel = Model();
osimState = osimModel.initSystem();
% Rest of your code
end

thanks
zohreh

POST REPLY