subroutine nxtvgrf (ANS,JTB,JDAT,JNE,LSTAT,JTLMOD,JCLK,IEOD) dimension anstmp(12) REAL ANS(150) INTEGER LSTAT, IEOD INTEGER*2 JTB(6),JDAT(512),JNE,JTLMOD,JCLK character*4 ikinds common ikinds,mindex do 10 i = 1,150 ans(150)=-10000. 10 continue call vgrtrd(ANStmp,JTB,JDAT,JNE,LSTAT,JTLMOD,JCLK,IEOD) if(ieod.ne.0) return c write(6,1321) jtb,jtlmod 1321 format("time from vgrtrd",6i5,i10) ntot = 4*jne c write(6,1322) (jdat(i),i=1,ntot) 1322 format(16i5) c c Fill the proton density and velocity RTN components c ans( 38) = anstmp(1) ans( 99) = anstmp(2) ans(100) = anstmp(3) ans(101) = anstmp(4) c c Fill the proton thermal speed from fit and moment result c ans(53) = anstmp(6) c ans(133) = anstmp(5) c Fill the alpha density from moment and fit calculations c ans(117) = anstmp(7) ans( 59) = anstmp(8) c c Fill the magnetic field RTN components c ans( 96) = anstmp(9) ans( 97) = anstmp(10) ans( 98) = anstmp(11) c write(6,3344) (m,ans(m),ans(m),m=1,150) 3344 format("VGR ANS: ",i5,f20.5,z20) return end