15 CHARACTER(LEN=*),
INTENT(IN) :: string
16 LOGICAL,
INTENT(IN) :: n1
18 write (*,*)
'nrerror: an assertion failed with this tag:', &
20 print *,
'program terminated by assert1'
25 SUBROUTINE assert2(n1,n2,string)
26 CHARACTER(LEN=*),
INTENT(IN) :: string
27 LOGICAL,
INTENT(IN) :: n1,n2
28 if (.not. (n1 .and. n2))
then
29 write (*,*)
'nrerror: an assertion failed with this tag:', &
31 print *,
'program terminated by assert2'
36 SUBROUTINE assert3(n1,n2,n3,string)
37 CHARACTER(LEN=*),
INTENT(IN) :: string
38 LOGICAL,
INTENT(IN) :: n1,n2,n3
39 if (.not. (n1 .and. n2 .and. n3))
then
40 write (*,*)
'nrerror: an assertion failed with this tag:', &
42 print *,
'program terminated by assert3'
47 SUBROUTINE assert4(n1,n2,n3,n4,string)
48 CHARACTER(LEN=*),
INTENT(IN) :: string
49 LOGICAL,
INTENT(IN) :: n1,n2,n3,n4
50 if (.not. (n1 .and. n2 .and. n3 .and. n4))
then
51 write (*,*)
'nrerror: an assertion failed with this tag:', &
53 print *,
'program terminated by assert4'
59 CHARACTER(LEN=*),
INTENT(IN) :: string
60 LOGICAL,
DIMENSION(:),
INTENT(IN) :: n
61 if (.not. all(n))
then
62 write (*,*)
'nrerror: an assertion failed with this tag:', &
64 print *,
'program terminated by assert_v'
subroutine, private assert4(n1, n2, n3, n4, string)
subroutine, private assert3(n1, n2, n3, string)
subroutine, private assert_v(n, string)
subroutine, private assert1(n1, string)
subroutine, private assert2(n1, n2, string)