Manager::integrate VS. Manager::doIntegration

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sina Porsa
Posts: 99
Joined: Thu Feb 03, 2011 7:21 pm

Manager::integrate VS. Manager::doIntegration

Post by Sina Porsa » Wed Nov 14, 2012 6:13 pm

Hi everybody;
I was wondering what is the difference between these two methods:

bool integrate (SimTK::State &s, double dtFirst=1.0e-6)
bool doIntegration (SimTK::State &s, int step, double dtFirst)


it seems that they have the same output results.
I was also wondering what is the second input in the "doIntegration" method (int step)? It seems that the output result is not a function of this input!!

Thanks
Sina

User avatar
Ayman Habib
Posts: 2244
Joined: Fri Apr 01, 2005 12:24 pm

Re: Manager::integrate VS. Manager::doIntegration

Post by Ayman Habib » Fri Nov 16, 2012 10:52 am

Hi Sina,

The integrate() method is a higher level interface that ends up calling doIntegration() after setting the start time in the state. The parameter step is not used for integration but for reporting only (to be used by analyses).

Hope this helps,
-Ayman

POST REPLY