Debian Codegraph @

debian/patches/n_tries_positive_in_siman

raw symbols SCIP
1 Description: The n_tries parameter has to be positive
2 Author: Dirk Eddelbuettel <[email protected]>
3 Bug-Debian: https://bugs.debian.org/1086206
4 Bug: https://lists.gnu.org/archive/html/bug-gsl/2024-09/msg00000.html
5 Last-Update: 2024-10-28
6
7 --- gsl-2.8+dfsg.orig/siman/siman.c
8 +++ gsl-2.8+dfsg/siman/siman.c
9 @@ -197,6 +197,9 @@ gsl_siman_solve_many (const gsl_rng * r,
10 double u; /* throw the die to choose a new "x" */
11 int n_iter;
12
13 + /* this function requires that n_tries be positive */
14 + assert(params.n_tries > 0);
15 +
16 if (print_position) {
17 printf ("#-iter temperature position");
18 printf (" delta_pos energy\n");