Commit 32fe2503 authored by Sébastien Timmermans's avatar Sébastien Timmermans
Browse files

changelog err msg

parent d7d7cbeb
## Changes for next release
* To be defined
* [C][Python] error handling is enhanced, with new error names and proper closing of the functions for all modules, except Real-time in dirdyn
* [C] All user models are printed with the `mbs_print_data` function
* [C] New function `print_d_vec_0_format` allowing to set the format of the vector values.
* [C] New function to compute matrix product between matrices of specified shape: `doublematrix_product_0`.
......
......@@ -62,7 +62,7 @@ void user_dirdyn_loop(MbsData *mbs_data, MbsDirdyn *mbs_dd)
// Error: impossible cut
// mbs_data->dpt[3][4] = 10;
//mbs_data->dpt[3][4] = 10;
}
......
......@@ -44,7 +44,7 @@ int main(int argc, char const *argv[])
printf("Hello MBS!\n");
// Set the code to go on
mbs_set_error_msg_fct_ptr(mbs_error_msg_continue);
//mbs_set_error_msg_fct_ptr(mbs_error_msg_continue);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* LOADING */
......@@ -52,7 +52,7 @@ int main(int argc, char const *argv[])
printf("Loading the PendulumSpring data file !\n");
// Error: Bad filename
// mbs_data = mbs_load(PROJECT_SOURCE_DIR"/../dataR/PendulumSpringC_ERROR.mbs", BUILD_PATH);
//mbs_data = mbs_load(PROJECT_SOURCE_DIR"/../dataR/PendulumSpringC_ERROR.mbs", BUILD_PATH);
// correct file
mbs_data = mbs_load(PROJECT_SOURCE_DIR"/../dataR/PendulumSpringC.mbs", BUILD_PATH);
printf("* .mbs file loaded!\n");
......@@ -94,7 +94,7 @@ int main(int argc, char const *argv[])
mbs_equil->options->verbose = 1;
// Error: impossible cut
// mbs_data->dpt[3][4] = 10;
//mbs_data->dpt[3][4] = 10;
// Error: Mass matrix full of 0.
// Set all mass to 0
......@@ -102,7 +102,7 @@ int main(int argc, char const *argv[])
// mbs_data->m[3] = 0.0;
// mbs_data->m[4] = 0.0;
// mbs_data->m[5] = 0.0;
// Set all inertia to 0
//// Set all inertia to 0
// mbs_data->In[5][1] = 0.0;
// mbs_data->In[5][4] = 0.0;
// mbs_data->In[5][5] = 0.0;
......@@ -114,7 +114,7 @@ int main(int argc, char const *argv[])
// mbs_equil->options->quch[1] = R2_pendulum_id;
// mbs_equil->options->quch[2] = T3_slider_id;
// mbs_equil->options->quch[3] = R3_slider_id;
// By anchor point coordinates with no symbol
//// By anchor point coordinates with no symbol
// mbs_equil->options->xch_ptr[1] = &(mbs_data->dpt[2][1]);
// mbs_equil->options->xch_ptr[2] = &(mbs_data->dpt[3][1]);
// mbs_equil->options->xch_ptr[3] = &(mbs_data->dpt[2][2]);
......@@ -143,14 +143,14 @@ int main(int argc, char const *argv[])
// Error: Mass matrix full of 0.
// Set all mass to 0
// mbs_data->m[1] = 0.0;
// mbs_data->m[3] = 0.0;
// mbs_data->m[4] = 0.0;
// mbs_data->m[5] = 0.0;
// Set all inertia to 0
// mbs_data->In[5][1] = 0.0;
// mbs_data->In[5][4] = 0.0;
// mbs_data->In[5][5] = 0.0;
//mbs_data->m[1] = 0.0;
//mbs_data->m[3] = 0.0;
//mbs_data->m[4] = 0.0;
//mbs_data->m[5] = 0.0;
//// Set all inertia to 0
//mbs_data->In[5][1] = 0.0;
//mbs_data->In[5][4] = 0.0;
//mbs_data->In[5][5] = 0.0;
mbs_run_modal(mbs_modal, mbs_data);
......@@ -168,7 +168,7 @@ int main(int argc, char const *argv[])
mbs_dirdyn = mbs_new_dirdyn(mbs_data);
// Error: joints have change
// mbs_set_qdriven(mbs_data, 2);
//mbs_set_qdriven(mbs_data, 2);
// dirdyn options (see documentations for additional options)
mbs_dirdyn->options->dt0 = 1e-3;
......@@ -205,7 +205,7 @@ int main(int argc, char const *argv[])
mbs_invdyn = mbs_new_invdyn(mbs_data);
// Error: joints have change
// mbs_set_qdriven(mbs_data, 2);
//mbs_set_qdriven(mbs_data, 2);
// Wrong trajectory files, the correct ones must be commented!
// mbs_invdyn->options->trajectoryqname = PROJECT_SOURCE_DIR"/../resultsR/wrong_q.res";
......@@ -233,7 +233,7 @@ int main(int argc, char const *argv[])
mbs_reset_data(mbs_data);
// Error: impossible cut
// mbs_data->dpt[3][4] = 10;
//mbs_data->dpt[3][4] = 10;
// Mass matrix full of 0 does not generate errors:
// We solve (roughly) F=m.a with m=0
......@@ -241,12 +241,12 @@ int main(int argc, char const *argv[])
mbs_solvekin = mbs_new_solvekin(mbs_data);
// Error: joints have change
// mbs_set_qdriven(mbs_data, 2);
//mbs_set_qdriven(mbs_data, 2);
// Wrong trajectory files, the correct ones must be commented!
// mbs_solvekin->options->trajectoryqname = PROJECT_SOURCE_DIR"/../resultsR/wrong_q.res";
// mbs_solvekin->options->trajectoryqdname = PROJECT_SOURCE_DIR"/../resultsR/wrong_qd.res";
// mbs_solvekin->options->trajectoryqddname = PROJECT_SOURCE_DIR"/../resultsR/wrong_qdd.res";
//mbs_solvekin->options->trajectoryqname = PROJECT_SOURCE_DIR"/../resultsR/wrong_q.res";
//mbs_solvekin->options->trajectoryqdname = PROJECT_SOURCE_DIR"/../resultsR/wrong_qd.res";
//mbs_solvekin->options->trajectoryqddname = PROJECT_SOURCE_DIR"/../resultsR/wrong_qdd.res";
mbs_solvekin->options->trajectoryqname = PROJECT_SOURCE_DIR"/../resultsR/RK4_q.res";
mbs_solvekin->options->trajectoryqdname = PROJECT_SOURCE_DIR"/../resultsR/RK4_qd.res";
......
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