Skip to content

Commit

Permalink
Update roots finding function
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jul 4, 2023
1 parent 89f00fe commit 490208b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rys_roots.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ static int R_dnode(double *a, double *roots, int order)
xi = x0 + (x0 - x1) / (p1 - p0) * p0;
}
n = 0;
while (x1 > x1*accrt+x0 || x0 > x1+x1*accrt) {
while (fabs(x1 - x0) > x1*accrt) {
n++;
if (n > 200) {
fprintf(stderr, "libcint::rys_roots NO CONV. IN R_dnode\n");
Expand Down

0 comments on commit 490208b

Please sign in to comment.