| 1 | Descriptionscip-debian debian gsl 2.8+dfsg-6 gsl/patches/n_tries_positive_in_siman#Description.: The n_tries parameter has to be positive |
| 2 | Authorscip-debian debian gsl 2.8+dfsg-6 gsl/patches/n_tries_positive_in_siman#Author.: Dirk Eddelbuettel <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 | Bug-Debianscip-debian debian gsl 2.8+dfsg-6 gsl/patches/n_tries_positive_in_siman#Bug-Debian.: https://bugs.debian.org/1086206scip-debian-bts debian-bts . . 1086206: |
| 4 | Bugscip-debian debian gsl 2.8+dfsg-6 gsl/patches/n_tries_positive_in_siman#Bug.: https://lists.gnu.org/archive/html/bug-gsl/2024-09/msg00000.html |
| 5 | Last-Updatescip-debian debian gsl 2.8+dfsg-6 gsl/patches/n_tries_positive_in_siman#Last-Update.: 2024-10-28 |
| 6 | |
| 7 | --- gsl-2.8+dfsg.orig/siman/siman.cscip-debian debian gsl 2.8+dfsg-6 gsl/upstream/`gsl-2.8+dfsg.orig/siman/siman.c`: |
| 8 | +++ gsl-2.8+dfsg/siman/siman.cscip-debian debian gsl 2.8+dfsg-6 gsl/upstream/`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"); |