Skip to content

Commit 08cf702

Browse files
committed
add assert
1 parent e0d9051 commit 08cf702

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/problem.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ void problem_jacobian(problem *prob)
531531
nnz_offset += c->jacobian->nnz;
532532
}
533533

534+
assert(nnz_offset == J->nnz);
534535
prob->jacobian_called = true;
535536
clock_gettime(CLOCK_MONOTONIC, &timer.end);
536537
prob->stats.time_eval_jacobian += GET_ELAPSED_SECONDS(timer);

0 commit comments

Comments
 (0)