Tech Tip: Problems at Runtime When Calling a NAG Routine

What can be wrong when your Fortran program, calling a NAG routine, 'blows up' during execution?

NAG optimization, quadrature or ordinary differential equation routines require the user to specify a function or subroutine in their argument list. Such routines should be declared as EXTERNAL in the calling subprogram. If they are not, and the compiler is unable to determine otherwise, perhaps by a separate call of the routine elsewhere in the subprogram, then the compiler will assume that the argument is a scalar. This will of course result in disastrous consequences at runtime.


For specific technical advice in using NAG's products, please contact our technical experts.

Return to Technical Tips & Hints index page.

Website Feedback

If you would like to see any changes on the current page, feel free to leave us a message.

(If you're a human, don't change the following field)
Your first name.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.