dimension jtb(6),v(3) integer*2 jtb integer*4 MODE,ICHN1,ICHN2 c c John Belcher 7/5/2019 c c this main routine sets the time, the velocity, the thermal c speed, and the density c c and sets whether you are doing an L mode (MODE = 1) or M mode (MODE = 2) c in calling roll.f c c In either case (L or M) roll.f returns a single current, the sum of c currents in channels ICHN1 to ICHN2. If ICHN1 = ICHN2, roll.f c returns the current in channel ICHN1 c jtb(1) = 2019 jtb(2) = 164 jtb(3) = 23 jtb(4) = 31 jtb(5) = 0 jtb(6) = 442 v(1) = 0. v(2) = 20. v(3) = -10. wpar = 30. den = .06 c set mode and channels to be summed over MODE = 2 ICHN1 = 1 ICHN2 = 8 write(6,5) jtb 5 format("time: ",6I5) write(6,6) v 6 format("velocity: " 3f9.1) write(6,7) wpar,den 7 format("wpar and den: ", f9.1,e12.3) write(6,8) mode,ichn1,ichn2 8 format("mode and channels summed over: " , 3I8) c c get current for a range of angles from vega lock c do 10 i = 1,73 angle = 5.*(i-1) call roll(jtb,v,den,wpar,angle,MODE,ICHN1,ICHN2,dcur) write(6,1000) angle,dcur 1000 format(2f12.4) 10 continue end