Code |
c
c###################################################################
c
subroutine aljan3(pet, pcf, kncf, pfit, kermsg)
c
c this is a general function for a cross section which
c has a functional form
c
c pfit = pcf(2) * log (pcf(3)*pet + pcf(4))/ pet
c
c where pcf(1) = the threshold energy for the particular reaction
c
c kermsg = blank if no errors
c
c written by j. j. smith , iaea atomic and molecular data unit
c
c------------------------------------------------------------------------
c
double precision pet, pcf, pfit
dimension pcf(4)
character*(*) kermsg
if(pet .ge. pcf(1) ) then
kermsg = ' '
else
kermsg = 'energy below threshold for the reaction'
return
endif
c
pfit = pcf(2) * log (pcf(3)*pet + pcf(4))/ pet
return
c
end |