21 ifunction = icurrf(index)
22 if (ifunction .eq. sinsquared)
then
24 & currf_parms(2,index),
25 & currf_parms(3,index))
26 else if (ifunction .eq. sinfun)
then
28 & currf_parms(2,index),
29 & currf_parms(3,index))
30 else if (ifunction .eq. leastsquares)
then
32 & currf_parms(1,index))
33 else if (ifunction .eq. piecewiselinear)
then
35 & currf_parms(1,index), lastcurrf_time(index))
36 else if (ifunction .eq. table)
then
37 scale = currf_parms(1,index)
38 delay = currf_parms(2,index)
39 num_tpoints = num_currf_parms(index) - 2
41 & currf_parms(3,index), lastcurrf_time(index))
42 current = current *
scale
function fsinsquared(time, amplitude, halfperiod, delay)
function fpiecewiselinear(time, npts, pts, ltime)
function fsinfun(time, amplitude, period, delay)
c *****************************************************************************c Various format statements for read_screamer_data output c To get these into made format to be characters c for each line corrected spelling errors in format added statement for Zflow Plasma Loss Model added format for CSV output type fixed more lines longer than characters added format for Measure Zflow Block and forward c reverse current directions in Zflow plasma loss c and Zflow POS models added format for SFC output type c removed from all code calls c c c c c a80 c i10 c No grids on plots c Do not write files containing the plotted points c Execute only one cycle c Do not echo the setup parameters and indicies c c &exitting c a13 c c c c c c c c102 c &described as a function of time c c c &described as a function of time c c c &function of time c c shell c &min A K c &trapped field time
function fleastsquares(time, num_coeff, coeff)
c *****************************************************************************c Various format statements for read_screamer_data output c To get these into made format to be characters c for each line corrected spelling errors in format added statement for Zflow Plasma Loss Model added format for CSV output type fixed more lines longer than characters added format for Measure Zflow Block and forward c reverse current directions in Zflow plasma loss c and Zflow POS models added format for SFC output type c removed from all code calls c c c c c a80 c i10 c No grids on plots c Do not write files containing the plotted points c Execute only one cycle c Do not echo the setup parameters and indicies c c &exitting c a13 c c c c c c c c102 c &described as a function of time c c c &described as a function of time c c c &function of time c c shell c &min A K c &trapped field c153 c c c Sin c c c remaining calls in rdscrelem c Tabular a10 Cond scale
subroutine set_current(time, index, current)