dcdfort
Modern Fortran library for analyzing DCD trajectories
Public Member Functions | List of all members
dcdfort_tests::check Interface Reference

Public Member Functions

subroutine check_int (x, y, passed, total)
 
subroutine check_real (x, y, passed, total)
 
subroutine check_array (x, y, passed, total)
 
subroutine check_array_2d (x, y, passed, total)
 

Member Function/Subroutine Documentation

◆ check_array()

subroutine dcdfort_tests::check::check_array ( real, dimension(:), intent(in)  x,
real, dimension(:), intent(in)  y,
integer, intent(inout)  passed,
integer, intent(inout)  total 
)
81 
82  implicit none
83 
84  integer, intent(inout) :: total, passed
85  real, intent(in) :: x(:), y(:)
86  real :: tol = 1e-4
87 
88  call do_output(total, passed, all(abs(x - y) .le. tol))
89 

◆ check_array_2d()

subroutine dcdfort_tests::check::check_array_2d ( real, dimension(:,:), intent(in)  x,
real, dimension(:,:), intent(in)  y,
integer, intent(inout)  passed,
integer, intent(inout)  total 
)
93 
94  implicit none
95 
96  integer, intent(inout) :: total, passed
97  real, intent(in) :: x(:,:), y(:,:)
98  real :: tol = 1e-6
99 
100  call do_output(total, passed, all(abs(x - y) .le. tol))
101 

◆ check_int()

subroutine dcdfort_tests::check::check_int ( integer, intent(in)  x,
integer, intent(in)  y,
integer, intent(inout)  passed,
integer, intent(inout)  total 
)
58 
59  implicit none
60 
61  integer, intent(inout) :: total, passed
62  integer, intent(in) :: x, y
63 
64  call do_output(total, passed, x .eq. y)
65 

◆ check_real()

subroutine dcdfort_tests::check::check_real ( real, intent(in)  x,
real, intent(in)  y,
integer, intent(inout)  passed,
integer, intent(inout)  total 
)
69 
70  implicit none
71 
72  integer, intent(inout) :: total, passed
73  real, intent(in) :: x, y
74  real :: tol = 1e-4
75 
76  call do_output(total, passed, abs(x-y) .le. tol)
77 

The documentation for this interface was generated from the following file: