assert1 Subroutine

public subroutine assert1(n1, string)

Arguments

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

Called by

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

Contents

Source Code


Source Code

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