Skip to content

Commit

Permalink
Update camp_solver.c
Browse files Browse the repository at this point in the history
  • Loading branch information
cguzman95 authored Jan 4, 2022
1 parent 4c77145 commit bae24b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/camp_solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ int guess_helper(const realtype t_n, const realtype h_n, N_Vector y_n,

// Scale incomplete jumps
if (i_fast >= 0 && h_n > ZERO)
h_j *= 0.95 + 0.1 * rand() / (double)RAND_MAX;
h_j *= 0.95 + 0.1;
h_j = t_n < t_0 + t_j + h_j ? t_n - (t_0 + t_j) : h_j;

// Only make small changes to adjustment vectors used in Newton iteration
Expand Down

0 comments on commit bae24b0

Please sign in to comment.