15 CHARACTER(LEN=*),
INTENT(IN) :: string
16 INTEGER,
INTENT(IN) :: n1,n2
21 write (*,*)
'nrerror: an assert_eq failed with this tag: ', &
23 print *,
'program terminated by assert_eq2'
29 CHARACTER(LEN=*),
INTENT(IN) :: string
30 INTEGER,
INTENT(IN) :: n1,n2,n3
32 if (n1 == n2 .and. n2 == n3)
then
35 write (*,*)
'nrerror: an assert_eq failed with this tag: ', &
37 print *,
'program terminated by assert_eq3'
43 CHARACTER(LEN=*),
INTENT(IN) :: string
44 INTEGER,
INTENT(IN) :: n1,n2,n3,n4
46 if (n1 == n2 .and. n2 == n3 .and. n3 == n4)
then
49 write (*,*)
'nrerror: an assert_eq failed with this tag: ', &
51 print *,
'program terminated by assert_eq4'
57 CHARACTER(LEN=*),
INTENT(IN) :: string
58 INTEGER,
DIMENSION(:),
INTENT(IN) :: nn
60 if (all(nn(2:) == nn(1)))
then
63 write (*,*)
'nrerror: an assert_eq failed with this tag: ', &
65 print *,
'program terminated by assert_eqn'
integer function, private assert_eq4(n1, n2, n3, n4, string)
integer function, private assert_eq2(n1, n2, string)
integer function, private assert_eq3(n1, n2, n3, string)
integer function, private assert_eqn(nn, string)