Skip to content

Commit

Permalink
fixed output
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24786 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Feb 26, 2015
1 parent 313fe2b commit 9cfe86c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SimulationRuntime/c/optimization/eval_all/EvalG.c
Expand Up @@ -718,15 +718,15 @@ static inline void printMaxError(Number *g, const int m, const int nx, const int

if(kk>-1){
if(kk < nx){
printf("\nmax error is %g for the approximation of the state %s(time = %g)\n",
infoStreamPrint(LOG_IPOPT_ERROR, 3, "max error is %g for the approximation of the state %s(time = %g)\n",
gmax, data->modelData.realVarsData[kk].info.name, (double)t[ii][jj]);
}else if(kk < nJ){
const int ll = kk - nx + optData->dim.index_con;
printf("\nmax violation is %g for the constraint %s(time = %g)\n",
infoStreamPrint(LOG_IPOPT_ERROR, 3,"max violation is %g for the constraint %s(time = %g)\n",
gmax, data->modelData.realVarsData[ll].info.name, (double)t[ii][jj]);
}else{
const int ll = kk - nx + optData->dim.index_con;
printf("\nmax violation is %g for the final constraint %s(time = %g)\n", gmax, data->modelData.realVarsData[ll].info.name, (double)t[ii][jj]);
infoStreamPrint(LOG_IPOPT_ERROR, 3,"max violation is %g for the final constraint %s(time = %g)\n", gmax, data->modelData.realVarsData[ll].info.name, (double)t[ii][jj]);
}
}
}
Expand Down

0 comments on commit 9cfe86c

Please sign in to comment.