26 REAL (R8),
INTENT (IN),
DIMENSION(:) :: power_ar
27 REAL (R8),
INTENT (IN),
DIMENSION(:) :: time_ar
28 REAL (R8),
INTENT (OUT) :: power
29 REAL (R8),
INTENT (IN) :: time
42 write(*,*)
'PowerFromArray: size of power and time arrays are notequal'
47 write(*,*)
'PowerFromArray: no elements in power array'
52 IF (time_ar(i).LE.time .AND. time.LE.time_ar(i+1))
THEN
53 if (abs(time_ar(i)-time_ar(i+1)).lt.teps)
then
55 write (*,*)
'time values are equal taking power at that point'
57 power = power_ar(i) + (power_ar(i+1)- power_ar(i))/(time_ar(i+1)-time_ar(i))*(time-time_ar(i))
63 IF (time_ar(i).GT.time_ar(i+1))
THEN
64 WRITE (*,*)
'NONMONOTHONIC TIME HAS BEEN SPECIFIED FOR POWER SEQUENCE'
subroutine fc2k_power_from_array2(POWER_AR, TIME_AR, TIME, POWER)