M_CLI2

subroutinetestit

subroutine testit(string, test)

Arguments

NameTypeIntentAttributesDescription
stringcharacter(len=*)in
testlogicalin

Source

Show the code
subroutine testit(string,test)
character(len=*),intent(in) :: string
logical,intent(in) :: test
integer :: i

   if(test)then
      write(*,it,advance='no')':ignorecase:',string,'passed'
      write(*,it)(trim(arr(i)),i=1,size(arr))
   else
      write(*,it,advance='no')':ignorecase:',string,'failed'
      write(*,it)(trim(arr(i)),i=1,size(arr))
      stop 1
   endif

end subroutine testit

Graphs

Called by

Variables

NameTypeAttributesDescription
iinteger