Skip to content

Commit a54b863

Browse files
authored
Merge pull request #8 from open-atmos/cguzman95-issue-7
Update camp_solver.c
2 parents 4c77145 + fe36d9c commit a54b863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/camp_solver.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ int guess_helper(const realtype t_n, const realtype h_n, N_Vector y_n,
13551355

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

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

0 commit comments

Comments
 (0)