Skip to content

Commit

Permalink
extend length of array in worhp_main
Browse files Browse the repository at this point in the history
  • Loading branch information
nimgould committed Jan 11, 2024
1 parent 52274ee commit 303b616
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/worhp/worhp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ int MAINENTRY() {
/* Adapt these as appropriate */
const char cutest_problem[STRING_LENGTH] = THIS_PROBLEM_NAME;
const char *outsdifd_filename = OUTSDIFD_FILENAME;
char buffer[STRING_LENGTH];
/* char buffer[STRING_LENGTH]; */
char buffer[STRING_LENGTH+20];

/* Check Version of library and header files */
CHECK_WORHP_VERSION
Expand Down Expand Up @@ -234,8 +235,8 @@ int MAINENTRY() {
MALLOC(j_var, jac_nnz_init, integer);
MALLOC(j_fun, jac_nnz_init, integer);

CUTEST_ccfsg_r(&cutest_status, &opt.n, &cutest_m, opt.X, opt.G,
&jac_nnz, &jac_nnz_init, j_val, j_var, j_fun,
CUTEST_ccfsg_r(&cutest_status, &opt.n, &cutest_m, opt.X, opt.G,
&jac_nnz, &jac_nnz_init, j_val, j_var, j_fun,
&evaluate_derivative);
assert(jac_nnz + opt.n == jac_nnz_init);
wsp.DG.nnz = jac_nnz;
Expand Down

0 comments on commit 303b616

Please sign in to comment.