Skip to content

Commit

Permalink
use float tol to fix docker trig test
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffIrwin committed Oct 27, 2024
1 parent 972d217 commit 63db58e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core.f90
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ module syntran__core_m
! + log, log10, log2, (gamma, log_gamma?)
! + trig: atan2, (sind, sec, cos, hyperbolic, ... ?)
! + norm, product
! + bessel_jn
! + reshape
! + system: multiple out args? iostat and stdout
! * recursive user-defined fns
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test.f90
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ subroutine unit_test_intr_fns(npass, nfail)
abs(eval_f64('sum(tan([0.0, 1.0]));') - sum(tan([0.d0, 1.0d0]))) < tol, &
abs(eval_f64('sum(tan([0.5, 1.0]));') - sum(tan([0.5d0, 1.0d0]))) < tol, &
abs(eval_f64('sum(tan([2.0, 1.0]));') - sum(tan([2.d0, 1.0d0]))) < tol, &
abs(eval_f32('acos(0.0f);') - acos(0.0)) < tol, &
abs(eval_f32('acos(0.0f);') - acos(0.0)) < ftol, &
abs(eval_f32('acos(1.0f);') - acos(1.0)) < ftol, &
abs(eval_f64('acos(0.0);') - acos(0.d0)) < tol, &
abs(eval_f64('acos(1.0);') - acos(1.0d0)) < tol, &
Expand Down

0 comments on commit 63db58e

Please sign in to comment.