NAG Logo
Numerical Algorithms Group
graphic

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.

© The Numerical Algorithms Group 2008
Privacy Policy | Trademarks

© Numerical Algorithms Group

Visit NAG on the web at:

www.nag.co.uk (Europe and ROW)
www.nag.com (North America)
www.nag-j.co.jp (Japan)

http://www.nag.co.uk/techtips/techtip001.asp