diff --git a/pyextra/acados_template/acados_ocp_solver_pyx.pyx b/pyextra/acados_template/acados_ocp_solver_pyx.pyx index 7af6485383..8b27ec1f4f 100644 --- a/pyextra/acados_template/acados_ocp_solver_pyx.pyx +++ b/pyextra/acados_template/acados_ocp_solver_pyx.pyx @@ -297,7 +297,7 @@ cdef class AcadosOcpSolverFast: value_shape = value_.shape if len(value_shape) == 1: value_shape = (value_shape[0], 0) - data_ptr = np.asfortranarray(value_) + value = np.asfortranarray(value_) elif len(value_shape) == 2: # Get elements in column major order