1 SUBROUTINE G(IGAMS,IWRK,NADC,NCellsInY) 2 INTEGER*2 IGAMS(2,NADC) 3 in = 1 4 do while (in.le.nadc.and.IGAMS(2,in).le.in) 5 enddo 6 END 7