c program to test the new version of nxtedr.f c John Belcher 1/23/2018 c DIMENSION ANS(200), TEMP(3) C THE ANSWER ARRAY, ANS, IS DIMENSIONED HERE AND INITIAL- C IZED WITH A MAGNETIC FIELD, AMONG OTHER THINGS. INTEGER LSTAT,IEOD,IL,bSTAT DATA ANS /200*0./ data temp /3*0./ character*1 b(4) equivalence (bstat,b(1)) INTEGER*2 JTB(6),JDATA(512),JNE,JTLMOD,JCLK,JDSRN(15) c open the file for the time log of this edr open(unit=32,file="edr_log") 1 call nxtedr(ANS,JTB,JDATA,JNE,LSTAT,JTLMOD,JCLK,TEMP,IEOD,IL, * TPTYPE) c check for end of file (get out of loop if end of file) if(IEOD == 1 ) go to 20 c change -1 to zeros in jdata to compare with v2all files do 445 k = 1,512 445 if (jdata(k).lt.0) jdata(k)=0 c set kstat, ityp, ipls so we can write then to v2all files bstat = lstat call l1xnew(b(4),kstat) c write(6,7777) kstat,b(4) 7777 format(2z10) IPLS = MOD(KSTAT/2,2) ITYP = MOD(KSTAT/4,4) c write out the log file write(32,995) JTB,JTLMOD c if(jtlmod.eq.2.and.jtb(3).gt.10) go to 20 995 format(12I5) c write out the v2all file write(6,5) JTB,JTLMOD,JNE,JCLK,KSTAT,IPLS,ITYP,LSTAT 5 format(9I5,z10,2i5,Z10) c write(6,8) ANS,TEMP 8 FORMAT(5E15.5) ncur = 16 if(jtlmod.eq.1) ncur = 64 if(jtlmod.eq.2) ncur = 512 c if(jtlmod.eq.1) write(6,6) (JDATa(I),I=1,ncur) 6 FORMAT(i15,15i4) 2228 format(16i4) 10 continue go to 1 20 continue stop end