Ruprecht-Karls-Universität Heidelberg

NAG

The NAG FORTRAN Library is a comprehensive collection of FORTRAN subroutines and functions for the soulution of numerical and statistical problems.

Introduction and Documentation

 

Please look at the NAG Library Documentations

Test and Invoke

Setting version information and testing NAG, you can write a FORTRAN program testNAG.f:

 

program testNAG
c
c gives essential information of the local NAG installation
c
real*8 A00AAF, dummy
external A00AAF
c
dummy = A00AAF
stop
end

 

Run the pgi compiler explicitly in 32-bit mode:

 

pgf77 -m32 -o testNAG testNAG.f -lnag

 

Then run

 

./testNAG

 

which outputs something like

 

 *** Start of NAG Library implementation details ***
Implementation title: Linux Portland Group, Inc. (PGI) PGF77
Precision: double
Product Code: FLLUX20DP
Mark: 20B
*** End of NAG Library implementation details ***
FORTRAN STOP

 

 

 

zum Seitenanfang/up