bool FGFDMExec::RunIC(void) { FGPropulsion* propulsion = (FGPropulsion*)Models[ePropulsion]; Models[eInput]->InitModel(); Models[eOutput]->InitModel(); SuspendIntegration(); // saves the integration rate, dt, then sets it to 0.0. Initialize(IC); Run(); ResumeIntegration(); // Restores the integration rate to what it was. for (unsigned int n=0; n < propulsion->GetNumEngines(); ++n) { if (IC->IsEngineRunning(n)) { try { propulsion->InitRunning(n); } catch (string str) { cerr << str << endl; return false; } } } return true; }
bool FGFDMExec::RunIC(void) { SuspendIntegration(); // saves the integration rate, dt, then sets it to 0.0. Initialize(IC); Run(); ResumeIntegration(); // Restores the integration rate to what it was. return true; }