Silicon Power Computer & comm GRAPHICS (IRIX 6) DOUBLE PRECISION FLSG620DA User Manual

Page of 10
FLSG620DA Users' Note
http://www.csar.cfs.ac.uk/test/software/maths/nag/mark20...
3 of 10
18/08/2004 12:11
f90 driver.f -lnag_scs -lscs
This links to the NAG library as well as the Silicon Graphics BLAS and LAPACK routines in
SCSL.
Note that the choice of the library linked to can be overridden by specifying the application
binary interface (ABI), that is -n32 or -64, and the instruction set architecture (ISA), that is
-mips3 or -mips4.
Gaining access to the libraries is a simple process, loading the nag module (
module load nag
is the only step that is required.
3.2. Example Programs
The example programs are most easily accessed by the command nagexample, which will
provide you with a copy of an example program (and its data, if any), compile the program and
link it with the library (showing you the compile command so that you can recompile your own
version of the program). Finally, the executable program will be run, presenting its output to
stdout. The example program concerned is specified by the argument to nagexample, e.g.
nagexample c06eaf
will copy the example program and its data into the files c06eafe.f and c06eafe.d in the current
directory and process them to produce the example program results.
In the NAG Fortran Library Manual, routine documents that have been typeset since Mark 12
present the example programs in a generalised form, using bold italicised terms as described in
Section 3.3
.
In other routine documents, the example programs are in single precision and require
modification for use with double precision routines. This conversion can entail:
Changing REAL or COMPLEX type specifications to REAL*8 or COMPLEX*16
Changing certain intrinsic function references, e.g. REAL or FLOAT to DBLE, ALOG to
DLOG, CMPLX to DCMPLX, and so on
Changing real constants to double precision form, e.g. 0.1 or 0.1E0 to 0.1D0
The example programs supplied to a site in machine-readable form have been modified as
necessary so that they are suitable for immediate execution. Note that the distributed example
programs are those used in this implementation and may not correspond exactly with the
programs published in the manual. The distributed example programs should be used in
preference wherever possible.
3.3. Interpretation of Bold Italicised Terms
For this double precision implementation, the bold italicised terms used in the NAG Fortran
Library Manual should be interpreted as:
real                 - DOUBLE PRECISION (REAL*8)
basic precision      - double precision
complex              - COMPLEX*16
additional precision - quadruple precision (REAL*16)
machine precision    - the machine precision, see the value