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@19201 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Feb 19, 2014
1 parent bc1bf77 commit 5be1a1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -485,7 +485,7 @@ static int local_jac_struct(IPOPT_DATA_ *iData, int * nng, int * nH)

for(i = 0; i <iData->nv; ++i)
for(j = 0; j < i+1; ++j)
++nnH;
++nnH;


*nng = id;
Expand Down
8 changes: 4 additions & 4 deletions SimulationRuntime/c/optimization/lagrangeFun/ipopt_hessian.c
Expand Up @@ -140,10 +140,10 @@ Bool ipopt_h(int n, double *v, Bool new_x, double obj_factor, int m, double *lam

for(i=0;i< iData->nv;++i)
for(j = 0; j< i+1; ++j){
if(iData->Hg[i][j]){
if(iData->Hg[i][j]){
sumLagrange(iData, &sum, ii, i, j, p, mayer_yes);
values[k++] = sum;
}
}
}

r += iData->nv;
Expand All @@ -160,10 +160,10 @@ Bool ipopt_h(int n, double *v, Bool new_x, double obj_factor, int m, double *lam

for(i=0;i< iData->nv;++i)
for(j = 0; j< i+1; ++j){
if(iData->Hg[i][j]){
if(iData->Hg[i][j]){
sumLagrange(iData, &sum, ii, i, j, p, mayer_yes);
values[k++] = sum;
}
}
}

r += iData->nv;
Expand Down

0 comments on commit 5be1a1d

Please sign in to comment.