PDA

View Full Version : problem report



yjyincj
07-18-2008, 09:48 AM
Problem pertains to the IMSL FORTRAN v6.0.
Compiler intel vf 10.1

The using of CHIGF is kinda misleading. One of its required arguments is CDF, which is a cumulative distribution function name and will be called by CHIGF. I encountered an error just now and I think it is nonsense. The structure of my program is as follows.

program main
use t
...
end program main
-------------------
module t
...
contains
subroutine sub
...
real(4),external::cdf
...
call chigf (cdf,........)
...
end subroutine sub

real function cdf
...
end function cdf
end module t
The error said that cdf can not be found. I solved this problem by making cdf as an internal subprocedure of subroutine sub.

pate
07-22-2008, 01:13 PM
I am not sure exactly what the question is, but if cdf is marked as an external procedure and in the main program it should be able to find it. I don't think you need to make it part of subroutine 'sub'. See the example in teh IMSL PDF help file, try compiling that example then working your code into that format.

-Merv