16 integer(kind=kint) :: id, nn, ii, ikk
17 real(kind=kreal) :: tt, qq
19 logical,
optional :: outofrange
22 if (
present(outofrange)) outofrange = .false.
24 nn = fstrheat%AMPLtab(id)
25 if ( tt < fstrheat%AMPLtime(id,1) )
then
27 if (
present(outofrange)) outofrange = .true.
28 elseif( tt >= fstrheat%AMPLtime(id,nn) )
then
30 if (
present(outofrange)) outofrange = .true.
33 if (
present(outofrange)) outofrange = .false.
35 if( tt .ge. fstrheat%AMPLtime(id,ikk) &
36 .and. tt .lt. fstrheat%AMPLtime(id,ikk+1) )
then
42 qq = fstrheat%AMPLfuncA(id,ii) * tt + fstrheat%AMPLfuncB(id,ii)