Commit e2029e62 authored by Sebastien Timmermans's avatar Sebastien Timmermans 🎹
Browse files

[ErrMsg][Fix] real-time dirdyn mbs_error call

parent 5af0b462
......@@ -324,7 +324,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
if (err < 0)
{
mbs_msg("\t >Real-time> error during activation !\n");
mbs_msg("[%d] in mbs_dirdyn_init !! \n", err);
mbs_msg("[%d] in mbs_dirdyn_init, shutting down the process !! \n", err);
return err;
}
}
......@@ -333,7 +333,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
{
err = _MBS_ERR_INIT;
mbs_msg("\t >Real-time> To use the real-time features (mbs_dirdyn->options->realtime activated), set the CMake flag 'FLAG_REAL_TIME' to ON !\n");
mbs_msg("[%d] in mbs_dirdyn_init !! \n", err);
mbs_msg("[%d] in mbs_dirdyn_init, shutting down the process !! \n", err);
return err;
}
#endif
......@@ -545,7 +545,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
free(bufElemNb);
mbs_msg("\t >Real-time> Error: real-time features must be activated to set 'save_visu' to 1 ! \n");
mbs_msg("[%d] in mbs_dirdyn_init !! \n", _MBS_ERR_INIT);
mbs_msg("[%d] in mbs_dirdyn_init, shutting down the process !! \n", _MBS_ERR_INIT);
return _MBS_ERR_INIT;
}
......@@ -562,7 +562,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
free(bufElemNb);
mbs_msg("\t >Real-time> Error: flag_visu must be set to 1 to set 'save_value' to 1 ! \n");
mbs_msg("[%d] in mbs_dirdyn_init !! \n", _MBS_ERR_INIT);
mbs_msg("[%d] in mbs_dirdyn_init, shutting down the process !! \n", _MBS_ERR_INIT);
return _MBS_ERR_INIT;
}
......@@ -586,7 +586,7 @@ int mbs_dirdyn_init(MbsDirdyn* dd, MbsData* mbs_data)
free(bufElemNb);
mbs_msg("\t >Dirdyn> [REAL-TIME] Error during buffer visu initialization num %d! \n", i);
mbs_msg("[%d] in mbs_dirdyn_init !! \n", _MBS_ERR_MOD_SPEC_11);
mbs_msg("[%d] in mbs_dirdyn_init, shutting down the process !! \n", _MBS_ERR_MOD_SPEC_11);
return _MBS_ERR_MOD_SPEC_11;
}
}
......@@ -755,7 +755,7 @@ int mbs_dirdyn_finish(MbsDirdyn* dd, MbsData* mbs_data) {
#ifdef REAL_TIME
realtime = (Simu_realtime*)mbs_data->realtime;
if (dd->options->realtime)
if (dd->options->realtime && !realtime)
{
err = mbs_realtime_finish((Simu_realtime*)mbs_data->realtime);
if (err < 0)
......
Markdown is supported
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