assert2 Subroutine

public subroutine assert2(n1, n2, string)

Arguments

Type IntentOptional AttributesName
logical, intent(in) :: n1
logical, intent(in) :: n2
character(len=*), intent(in) :: string

Contents

Source Code


Source Code

	SUBROUTINE assert2(n1,n2,string)
	CHARACTER(LEN=*), INTENT(IN) :: string
	LOGICAL, INTENT(IN) :: n1,n2
	if (.not. (n1 .and. n2)) then
		write (*,*) 'nrerror: an assertion failed with this tag:', &
			string
		STOP 'program terminated by assert2'
	end if
	END SUBROUTINE assert2