Commit 79163a47 authored by Sébastien Timmermans's avatar Sébastien Timmermans
Browse files

[ErrMsg][Dirdyn] RT in module

parent 5d14bec5
......@@ -737,7 +737,13 @@ int mbs_dirdyn_finish(MbsDirdyn* dd, MbsData* mbs_data) {
if (dd->options->realtime)
{
mbs_realtime_finish((Simu_realtime*)mbs_data->realtime);
err = mbs_realtime_finish((Simu_realtime*)mbs_data->realtime);
if (err < 0)
{
mbs_msg(">>DIRDYN>>\n");
mbs_msg(">>DIRDYN>> ***** realtime : impossible to finish !\n");
return _MBS_ERR_MOD_DIRDYN + err;
}
}
#endif
......@@ -974,7 +980,12 @@ int save_realtime_update(MbsDirdyn* dd, MbsData* mbs_data)
mbs_realtime_update(realtime, mbs_data->tsim);
// real-time loop iteration
mbs_realtime_loop(realtime, mbs_data->tsim);
err = mbs_realtime_loop(realtime, mbs_data->tsim);
if (err < 0) // Error management
{
mbs_msg("\t >Real-time> Error: during mbs_real_time loop ! \n");
return err;
}
// quit the simulation
if (realtime->simu_quit)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment