Skip to content

Commit 6e0a940

Browse files
authored
Merge pull request #155 from jvdp1/small_corrections
small_corrections: small issues detected when compiled with ifort17.0.4
2 parents 5f35833 + d94b285 commit 6e0a940

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tests/stats/test_mean.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ program test_mean
55
use stdlib_experimental_stats, only: mean
66
implicit none
77

8-
real(sp), parameter :: sptol = 10 * epsilon(1._sp)
9-
real(dp), parameter :: dptol = 10 * epsilon(1._dp)
8+
real(sp), parameter :: sptol = 1000 * epsilon(1._sp)
9+
real(dp), parameter :: dptol = 1000 * epsilon(1._dp)
1010

1111
real(sp) :: s1(3) = [1.0_sp, 2.0_sp, 3.0_sp]
1212

src/tests/stats/test_var.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ program test_var
154154
call assert( all( abs( var(d, 1, d < 11) -&
155155
[20._dp / 3._dp, 20._dp / 3._dp, 0.5_dp]) < dptol))
156156
call assert( all( abs( var(d, 2, d < 11) -&
157-
[19.0_dp, 43._dp / 3._dp, 0.5 _dp, 0.5_dp]) < dptol))
157+
[19.0_dp, 43._dp / 3._dp, 0.5_dp, 0.5_dp]) < dptol))
158158

159159
!3dim
160160
allocate(d3(size(d,1),size(d,2),3))
@@ -337,7 +337,7 @@ program test_var
337337
call assert( all( abs( var(i64, 1, i64 < 11) -&
338338
[20._dp / 3._dp, 20._dp / 3._dp, 0.5_dp]) < dptol))
339339
call assert( all( abs( var(i64, 2, i64 < 11) -&
340-
[19.0_dp, 43._dp / 3._dp, 0.5 _dp, 0.5_dp]) < dptol))
340+
[19.0_dp, 43._dp / 3._dp, 0.5_dp, 0.5_dp]) < dptol))
341341

342342
!3dim
343343
allocate(i643(size(d,1),size(d,2),3))

0 commit comments

Comments
 (0)