Commit d49b6f15 authored by Sebastien Timmermans's avatar Sebastien Timmermans 🎹

[Fix][Warning] remove useless int ind in user_model generation

parent 0137c6e1
Pipeline #4434 passed with stage
in 9 minutes and 53 seconds
......@@ -286,7 +286,21 @@ void mbs_print_user_models(MDS_gen_strct* gen, char *fileoutC, char *fileoutH)
fprintf(fidC," void mbs_load_user_model_xml(MDS_gen_strct* gen, UserModel* um) \n");
fprintf(fidC,"{\n");
fprintf(fidC,"\n");
fprintf(fidC," int ind;\n");
// int ind is used only in two cases ("vector" and "state")
for(i=0; i< gen->user_models->n_user_model; i++)
{
for(j=0; j< gen->user_models->user_model_list[i]->n_parameter; j++)
{
switch( gen->user_models->user_model_list[i]->parameter_list[j]->type)
{
case 2: //vector
fprintf(fidC," int ind;\n");
case 5: // state
fprintf(fidC," int ind;\n");
}
}
}
fprintf(fidC," int ind_state_value = 1;\n");
fprintf(fidC,"\n");
......
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