Skip to content

Commit

Permalink
[Janitor mode] Fix tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19314 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 26, 2014
1 parent 35279c3 commit af99788
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions SimulationRuntime/c/optimization/constraints/evalfDiffG.c
Expand Up @@ -74,7 +74,7 @@ Bool evalfDiffG(Index n, double * x, Bool new_x, Index m, Index njac, Index *iRo

#if 0
{
int i;
int i;
FILE *pFile;
char buffer[4096];
pFile = fopen("jac_struct.m", "wt");
Expand All @@ -93,8 +93,8 @@ Bool evalfDiffG(Index n, double * x, Bool new_x, Index m, Index njac, Index *iRo
fprintf(pFile, "%s", "\nH=[];\n");
fprintf(pFile, "%s", "%%%%%%%%%%%%%%%%%%%%%%\n");
for(i=0; i< njac; ++i){
sprintf(buffer, "H(%i,%i) = 1;\n", iRow[i]+1, iCol[i]+1);
fprintf(pFile,"%s", buffer);
sprintf(buffer, "H(%i,%i) = 1;\n", iRow[i]+1, iCol[i]+1);
fprintf(pFile,"%s", buffer);
}
fprintf(pFile, "%s", "%%%%%%%%%%%%%%%%%%%%%%\n");
fprintf(pFile, "%s", "spy(H)\n");
Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/c/optimization/lagrangeFun/ipopt_hessian.c
Expand Up @@ -115,8 +115,8 @@ Bool ipopt_h(int n, double *v, Bool new_x, double obj_factor, int m, double *lam
fprintf(pFile, "%s", "\nH=[];\n");
fprintf(pFile, "%s", "%%%%%%%%%%%%%%%%%%%%%%\n");
for(i=0; i< nele_hess; ++i){
sprintf(buffer, "H(%i,%i) = 1;\n", iRow[i]+1, iCol[i]+1);
fprintf(pFile,"%s", buffer);
sprintf(buffer, "H(%i,%i) = 1;\n", iRow[i]+1, iCol[i]+1);
fprintf(pFile,"%s", buffer);
}
fprintf(pFile, "%s", "%%%%%%%%%%%%%%%%%%%%%%\n");
fprintf(pFile, "%s", "spy(H)\n");
Expand Down

0 comments on commit af99788

Please sign in to comment.