From 2b24a65989759629096910f0bd53be636477d44e Mon Sep 17 00:00:00 2001 From: giaf Date: Wed, 20 Oct 2021 12:27:17 +0200 Subject: [PATCH] fix to ocp_qcqp_codegen --- ocp_qp/x_ocp_qcqp_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocp_qp/x_ocp_qcqp_utils.c b/ocp_qp/x_ocp_qcqp_utils.c index 9d490efc..0d82e43f 100644 --- a/ocp_qp/x_ocp_qcqp_utils.c +++ b/ocp_qp/x_ocp_qcqp_utils.c @@ -1567,7 +1567,7 @@ void OCP_QCQP_CODEGEN(char *file_name, char *mode, struct OCP_QCQP_DIM *dim, str #endif for(jj=0; jjd+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"); } @@ -1596,7 +1596,7 @@ void OCP_QCQP_CODEGEN(char *file_name, char *mode, struct OCP_QCQP_DIM *dim, str #endif for(jj=0; jjd+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"); }