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

Called by

proc~~assert2~~CalledByGraph proc~assert2 assert2 interface~assert assert interface~assert->proc~assert2 proc~bessik bessik proc~bessik->interface~assert

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