Skip to content

Commit

Permalink
Update tolerance for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Jan 2, 2024
1 parent 041aec5 commit 421ef1a
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion test/test1.f90
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ program test1
call sleep(1) ! Perform operations here
call t%timer_stop()

call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test1')
call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test1')

end program test1

2 changes: 1 addition & 1 deletion test/test10.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ program test10
call t%mtimer_stop()
call mpi_finalize(ierr)

call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test10')
call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test10')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test11.f90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ program test11
call mpi_finalize(ierr)
call t%mtimer_write('test/test11_mtimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test11')
call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test11')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test12.f90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ program test12
call mpi_finalize(ierr)
call t%mtimer_write('test/test12_mtimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%mpi_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-2_rk, msg='test12')
call ut%check(res=t%mpi_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test12')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test13.f90
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ program test13
call sleep(1) ! Perform operations here
call t%timer_stop(print=.false.)

call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test13')
call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test13')

end program test13

2 changes: 1 addition & 1 deletion test/test14.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ program test14
call t%timer_stop(nloops = nloops, message = 'Elapsed time:', print=.false.)
call t%timer_write('test/test14_etimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test14')
call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test14')

end program test14

2 changes: 1 addition & 1 deletion test/test15.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ program test15
call t%timer_stop(message = 'Elapsed time:', print=.false.)
call t%timer_write('test/test15_etimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%elapsed_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-2_rk, msg='test15')
call ut%check(res=t%elapsed_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test15')

end program test15

2 changes: 1 addition & 1 deletion test/test19.f90
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ program test19
call sleep(1) ! Perform operations here
call t%otimer_stop(print=.false.)

call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test19')
call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test19')
#endif

end program test19
Expand Down
2 changes: 1 addition & 1 deletion test/test2.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ program test2
call t%timer_stop(nloops = nloops, message = 'Elapsed time:')
call t%timer_write('test/test2_etimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test2')
call ut%check(res=t%elapsed_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test2')

end program test2

2 changes: 1 addition & 1 deletion test/test20.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ program test20
call t%otimer_stop(nloops = nloops, message = 'OMP time:', print=.false.)
call t%otimer_write('test/test20_otimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test20')
call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test20')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test21.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ program test21
call t%otimer_stop(message = 'OMP time:', print=.false.)
call t%otimer_write('test/test21_otimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%omp_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-2_rk, msg='test21')
call ut%check(res=t%omp_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test21')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test22.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ program test22
call t%mtimer_stop(print=.false.)
call mpi_finalize(ierr)

call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test22')
call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test22')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test23.f90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ program test23
call mpi_finalize(ierr)
call t%mtimer_write('test/test23_mtimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test23')
call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test23')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test24.f90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ program test24
call mpi_finalize(ierr)
call t%mtimer_write('test/test24_mtimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%mpi_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-2_rk, msg='test24')
call ut%check(res=t%mpi_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test24')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test3.f90
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ program test3
call t%timer_stop(message = 'Elapsed time:')
call t%timer_write('test/test3_etimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%elapsed_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-2_rk, msg='test3')
call ut%check(res=t%elapsed_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test3')

end program test3

2 changes: 1 addition & 1 deletion test/test7.f90
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ program test7
call sleep(1) ! Perform operations here
call t%otimer_stop()

call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test7')
call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test7')
#endif

end program test7
Expand Down
2 changes: 1 addition & 1 deletion test/test8.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ program test8
call t%otimer_stop(nloops = nloops, message = 'OMP time:')
call t%otimer_write('test/test8_otimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-2_rk, msg='test8')
call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test8')

#endif

Expand Down
2 changes: 1 addition & 1 deletion test/test9.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ program test9
call t%otimer_stop(message = 'OMP time:')
call t%otimer_write('test/test9_otimes') ! Optionally, write the elapsed time to a file

call ut%check(res=t%omp_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-2_rk, msg='test9')
call ut%check(res=t%omp_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test9')

#endif

Expand Down

0 comments on commit 421ef1a

Please sign in to comment.