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MAX )
210 1 +PNM(L+NMAX,J0+1)*DATA(K,M,J0+ 1)
211 1 +PNM(L+NMAX,J0+2)*DATA(K,M,J0+ 2)
214 ELSE IF (JREM.EQ.1) THEN
218 WDATA(K,L+N-1)=WDATA(K,L+N-1)
219 1 +PNM(L+N-1,J0+1)*DATA(K,M,J0+ 1)
220 WDATA(K,L+N )=WDATA(K,L+N )
221 1 +PNM(L+N,J0+1)*DATA(K,M,JBLK1+J0+ 1)
224 IF(MOD(NMAX,2).NE.0) THEN
226 WDATA(K,L+NMAX )=WDATA(K,L+NMAX )
227 1 +PNM(L+NMAX,J0+1)*DATA(K,M,J0+ 1)