Commit b681ab1c authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[TestProject] Add some examples of error in test errors.

parent b7e74b78
......@@ -86,6 +86,33 @@ int main(int argc, char const *argv[])
mbs_equil->options->senstol = 1e-2;
mbs_equil->options->verbose = 1;
// 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;
// Error: impossible cut
// mbs_data->dpt[3][4] = 10;
// Error: no sensitive variables
// Replace all independent joints
// mbs_equil->options->nquch = 3;
// mbs_equil_exchange(mbs_equil->options);
// 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
// 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]);
mbs_run_equil(mbs_equil, mbs_data);
mbs_delete_equil(mbs_equil, mbs_data);
......
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