2 1 (WDATA,QDATA,MEND1,NEND1,JEND1,MNWAV,KWMAX,KQMAX,KWW,KQQ,
3 2 KMX2 ,LAG ,IWORG,INOUT)
5 Crizvi REAL*4 WDATA(KWMAX,MNWAV), QDATA(KQMAX,MNWAV)
6 REAL WDATA(KWMAX,MNWAV), QDATA(KQMAX,MNWAV)
7 INTEGER*4 LAG(MEND1,NEND1)
8 CHARACTER*4 IWORG,INOUT
10 C INOUT='IN '...COPIES FROM WDATA TO QDATA
11 C 'OUT '...COPIES FROM QDATA TO WDATA
12 C IWORG='CLMN'...DOES NOTHING
13 C 'DGNL'...CHANGES FROM DIAGONAL TO COLUMWISE ORDER
15 IF(INOUT.EQ.'IN ') THEN
17 IF(IWORG.EQ.'CLMN') THEN
20 QDATA(K+KQQ,L)=WDATA(K+KWW,L)
22 ELSE IF(IWORG.EQ.'DGNL') THEN
25 NMAX=MIN(NEND1,JEND1+1-M)
30 QDATA(K+KQQ,L)=WDATA(K+KWW,LX)
34 ELSE IF(INOUT.EQ.'OUT ') THEN
36 IF(IWORG.EQ.'CLMN') THEN
39 WDATA(K+KWW,L)=QDATA(K+KQQ,L)
41 ELSE IF(IWORG.EQ.'DGNL') THEN
42 WRITE(96,*)'SUBR.REOWAV DOES NOT TAKE CARE OF DIAGONAL OUTPUT'