c This subroutine will return the data relevant to mjsanl for a given c type of file. SUBROUTINE NXTMOD + (ANS,JTB,JDATA,JNE,LSTAT,JTLMOD,JCLK,TEMP,IEOD,IL,itype) REAL ANS(150), TEMP(3) INTEGER*2 JTB(6),JDATA(512),JNE,JTLMOD,JCLK INTEGER IEOD,IL REAL*8 TBEG,TSPEC common/mid/iplnt,fact1,fact2 common/bug/tbeg,tspec character*4 itype,idtype(4) data idtype/'EDR ','SUM ','SPL ','VGRT'/ ieod = 0 IL = 0 c write(6,7711) tbeg,tspec 7711 format(" nxtmod tbeg tspec ", 2e21.12) do 15 i=1,150 15 ans(i)=0. if(iplnt .eq. 0) then itype = idtype(4) call nxtvgrf(ANS,JTB,JDATA,JNE,LSTAT,JTLMOD,JCLK,TEMP,IEOD) else if(iplnt .ne. 0) then itype = idtype(3) READ(32,40,end=10) JTB,JTLMOD,JNE,JCLK,LSTAT,ITYP,FACT,IDSC c write(6,8811) iplnt,ieod,jtb,jtlmod,fact 8811 format(" in nxtmod ",9I5,F10.3) c since we are reading from an spl format, we must divide jne by 4 for L and M fact2 = fact c write(6,41) JTB,JTLMOD,JNE,JCLK,LSTAT,ITYP,FACT,IDSC READ(32,99) (JDATA(J), J = 1,JNE) 40 FORMAT(8I5,I3,Z6,I3,F10.2,I2) if(jne.gt.16) jne=jne/4 41 FORMAT(" from NXTMOD ",8I5,I3,Z6,I3,F10.2,I2) 99 FORMAT(16I4) endif return 10 continue ieod = 1 return end