Skip to content

Commit

Permalink
fix to ocp_qcqp_codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
giaf committed Oct 20, 2021
1 parent 53b6cf3 commit 2b24a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocp_qp/x_ocp_qcqp_utils.c
Expand Up @@ -1567,7 +1567,7 @@ void OCP_QCQP_CODEGEN(char *file_name, char *mode, struct OCP_QCQP_DIM *dim, str
#endif
for(jj=0; jj<ns[nn]; jj++)
{
fprintf(file, "%18.15e, ", BLASFEO_DVECEL(qp->d+nn, 2*nb[nn]+2*ng[nn]+jj));
fprintf(file, "%18.15e, ", BLASFEO_DVECEL(qp->d+nn, 2*nb[nn]+2*ng[nn]+2*nq[nn]+jj));
}
fprintf(file, "};\n");
}
Expand Down Expand Up @@ -1596,7 +1596,7 @@ void OCP_QCQP_CODEGEN(char *file_name, char *mode, struct OCP_QCQP_DIM *dim, str
#endif
for(jj=0; jj<ns[nn]; jj++)
{
fprintf(file, "%18.15e, ", BLASFEO_DVECEL(qp->d+nn, 2*nb[nn]+2*ng[nn]+ns[nn]+jj));
fprintf(file, "%18.15e, ", BLASFEO_DVECEL(qp->d+nn, 2*nb[nn]+2*ng[nn]+2*nq[nn]+ns[nn]+jj));
}
fprintf(file, "};\n");
}
Expand Down

0 comments on commit 2b24a65

Please sign in to comment.