Skip to content

Commit 688290a

Browse files
committed
increase tol for lmstr check
1 parent a2b36ec commit 688290a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_lmstr.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ program test
3737
real(wp),parameter :: one = 1.0_wp
3838
real(wp),parameter :: ten = 10.0_wp
3939
real(wp),parameter :: tol = sqrt(dpmpar(1))
40+
real(wp), parameter :: solution_abstol = 1.0e-5_wp !! abstol for matching previously generated solutions
4041
real(wp), parameter :: solution_reltol = 1.0e-4_wp !! reltol for matching previously generated solutions
4142

4243
ic = 0
@@ -91,7 +92,7 @@ program test
9192
factor = ten*factor
9293

9394
! compare with previously generated solutions:
94-
if (any(abs(solution(ic) - x)>tol) .and. &
95+
if (any(abs(solution(ic) - x)>solution_abstol) .and. &
9596
any(abs((solution(ic) - x)/(solution(ic))) > solution_reltol)) then
9697
write(nwrite,'(A)') 'Failed case'
9798
write(nwrite, '(//5x, a//(5x, 5d15.7))') 'Expected x: ', solution(ic)

0 commit comments

Comments
 (0)