@@ -66,10 +66,10 @@ subroutine test_normal
6666 cdf_diff(i) = normal_cdf(mx(i), mmean(i), msd(i)) - mcdf(i)
6767end do
6868max_matlab_diff = maxval (abs (cdf_diff))
69- if (max_matlab_diff > 1.0e-15_r8 ) then
70- write (* , * ) ' WARNING: Difference from Matlab baseline is too large ' , max_matlab_diff
69+ if (max_matlab_diff < 1.0e-15_r8 ) then
70+ write (* , * ) ' Matlab Comparison Tests: PASS ' , max_matlab_diff
7171else
72- write (* , * ) ' Agreement with Matlab baseline is okay: max diff is < 1e-15 ' , max_matlab_diff
72+ write (* , * ) ' Matlab Comparison Tests: FAIL ' , max_matlab_diff
7373endif
7474
7575! Keep track of differences as function of quantile
@@ -92,10 +92,10 @@ subroutine test_normal
9292
9393do j = 1 , 16
9494 if (max_diff(j) > inv_diff_bound(j)) then
95- write (* , * ) ' WARNING : Max inversion diff ' , max_diff(j), ' > bound ' , inv_diff_bound(j), &
95+ write (* , * ) ' FAIL : Max inversion diff ' , max_diff(j), ' > bound ' , inv_diff_bound(j), &
9696 ' for quantiles < ' , max_q(j)
9797 else
98- write (* , * ) ' Max inversion diff ' , max_diff(j), ' OK, bound ' , inv_diff_bound(j), &
98+ write (* , * ) ' PASS: Max inversion diff ' , max_diff(j), ' < bound ' , inv_diff_bound(j), &
9999 ' for quantiles < ' , max_q(j)
100100 endif
101101end do
0 commit comments