MCPcopy Create free account
hub / github.com/JSBSim-Team/jsbsim / LoadIC

Method LoadIC

matlab/JSBSimInterface.cpp:143–157  ·  view source on GitHub ↗

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Source from the content-addressed store, hash-verified

141
142//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
143bool JSBSimInterface::LoadIC(SGPath ResetName)
144{
145 try {
146 auto IC = fdmExec->GetIC();
147
148 if (!IC->Load(ResetName)) return false;
149
150 if (!fdmExec->RunIC()) return false;
151
152 return true;
153 } catch (const LogException& e) {
154 mexPrintf(e.what());
155 return false;
156 }
157}
158
159//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
160void JSBSimInterface::Update()

Callers 1

mdlInitializeConditionsFunction · 0.80

Calls 3

RunICMethod · 0.80
LoadMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected