Merge remote-tracking branch 'origin/release-v4.5.2'
[WRF.git] / var / convertor / kma_wave2grid / SETARY.inc
blobb09d20386e96f2f4a37507720b9cc49167017288
1       SUBROUTINE SETARY(LAG,MEND1,NEND1,JEND1)
2       INTEGER*4 LAG(MEND1,NEND1)
4       L=0
5       DO 100 N=1,NEND1
6        MMAX=MIN(MEND1,JEND1+1-N)
7       DO 100 M=1,MMAX
8        L=L+1
9        LAG(M,N)=L
10   100 CONTINUE
12       RETURN
13       END SUBROUTINE SETARY