32 subroutine trimbd(used,nrow,ncol,set,unset_rect)
37 integer,
intent(in) :: nrow, ncol
38 integer(kind=1),
intent(in) :: used(nrow,ncol)
41 logical,
intent(out) :: set
43 integer,
intent(out) :: unset_rect(4)
47 integer(kind=1) :: check
52 100 utot = utot + used(i,j)
54 if (utot .eq. nrow * ncol )
then 62 check = min(check,used(i,j))
71 check = min(check,used(nrow - i + 1,j))
73 unset_rect(2) = nrow - i + 1
80 check = min(check,used(i,j))
89 check = min(check,used(i,ncol - j + 1))
91 unset_rect(4) = ncol - j + 1
subroutine trimbd(used, nrow, ncol, set, unset_rect)
Examine the setting status of a patch.