NAG fl90, Release 4

FNSOL04DGL - License Managed

Sun SPARC (Solaris), NAGWare f95 (Gnu C)

Installer's Note


1. Introduction

This document is essential reading for whoever is responsible for the installation of the NAG fl90 implementation specified in the title. The installer will be supplied with a printed copy of this document. Both this (in.html) and the Users' Note (un.html) are supplied in the doc directory on the distribution medium.

Whenever the NAG fl90 has been supplied in compiled form, that form is considered to be the standard library file. The use of all supplied software must be in accordance with the terms and conditions of the Software Licence signed by NAG and each site. Any request to use NAG software on a computer other than the one licensed must be referred to NAG (see Section 6).

2. Implementation Provided

2.1. Applicability

This implementation is a compiled, tested, ready-to-use version of NAG fl90 that is considered suitable for operation on the computer systems detailed below:

hardware:          all SPARC systems
operating system:  SunOS 5.6 or compatible
Fortran compiler:  NAGWare f95 Release 4.2(464) or compatible

For information about implementations of NAG fl90 for use on other computer systems please contact NAG.

2.2. Derivation

This implementation was produced at NAG Ltd., Oxford on the computing system detailed below:

hardware:               SUNW,Ultra-Enterprise
operating system:       SunOS 5.6 Generic
Fortran compiler:       NAGWare Fortran 95 compiler Release 4.2(464)
underlying C compiler:  gcc 2.95.2

The entire NAG fl90 library, Release 4, was compiled with full optimization (-O4).

The implementation was also tested on a SPARCstation-20 with SunOS 5.5, Ultra-80 with SunOS 5.7 and Ultra-5_10 with SunOS 5.8. In all cases the NAGWare f95 xompiler v4.2(464) and gcc version 2.95.2 were used.

3. Distribution Medium

3.1. Recording Details

The implementation is distributed in tar format on CD-ROM, unless otherwise indicated on the medium and accompanying despatch note.

For further details, refer to other documentation supplied or contact NAG (see Section 6).

3.2. Contents

The following shows the directory/file organization of the library materials as they will be installed.
                      |-- in.html
            |-- doc --|-- un.html
            |         |-- nag_fn_un.3
            |-- libnagfl90.a
            |-- nag_mod_dir --|-- *.mod
            |              |-- source ---|-- *.f90
            |-- examples --|-- data -----|-- *.dat
            |              |-- results --|-- *.r
fnsol04dg --|              |-- bin ------|-- * (directories of FLEXlm binaries
            |              |                    for supported platforms)
            |              |
            |              |-- enduser.pdf (FLEXlm End User Manual)
            |              |
            |-- license ---|             |-- index.htm
            |              |             |
            |              |             |-- flexfaq ---|-- *.htm (FLEXlm FAQ)
            |              |-- htmlman --|
            |                            |              |-- *.htm     (FLEXlm
            |                            |-- flexuser --|             End User
            |                                           |-- graphics  Manual)
            |-- scripts ---|-- nagexample

The following shows the directory/file organization of the PDF documentation materials as they will be installed.

         |-- images --|-- *.gif
         |                   |-- release4.html  (main index)
         |                   |
         |                   |-- genint --|-- *.html  (introductory material)
NAGdoc --|        |-- html --|
         |        |          |-- library_contents --|-- *.html
         |        |          |
         |        |          |-- [c01-c29]_fn04.html  (chapter indexes)
         |-- fn --|
                  |         |-- genint --|-- *.pdf  (introductory material)
                  |         |
                  |         |-- library_contents --|-- *.pdf
                  |-- pdf --|
                            |-- indexes --|-- *.pdf  (KWIC and GAMS)
                            |-- [c01-c29] --|-- *.pdf  (chapter, module
                                                        and procedure files)

3.3. File Sizes

The files require approximately the following disk space:
compiled library:            12.2 Mb
module information files:     6.3 Mb
example program material:     4.3 Mb
library documentation files:  0.1 Mb
scripts:                      0.1 Mb
PDF documentation files:     20.2 Mb
licensing materials:         20.7 Mb

4. Installation

4.1. Library Installation

To install all library material use the Unix tar utility, e.g.

tar xvf /cdrom/fn04.tar
(assuming the CD-ROM has been mounted as /cdrom).

The object library (libnagfl90.a) should be moved to a directory, such as /usr/lib, in the default search path of the linker, if possible, so that linkage is convenient. Alternatively, a symbolic link could be made to it, e.g.

ln -s /fnsol04dg/libnagfl90.a  /usr/lib/libnagfl90.a

The module information files (nag_mod_dir/*.mod) are supplied in pre-compiled module form. They should be moved to a suitable location so that access is convenient, e.g.

mkdir /usr/local/lib/fl90_modules
mv nag_mod_dir/* /usr/local/lib/fl90_modules
or, a symbolic link could be made to them, e.g.
ln -s /fnsol04dg/nag_mod_dir  /usr/local/lib/fl90_modules

The -I"pathname" option should then be specified on each f95 invocation (where "pathname" is /usr/local/lib/fl90_modules) to tell the compiler where to find the modules.

Alternatively, the files may be moved to the same directory as the pre-defined modules supplied with the compiler.

The script nagexample refers to the local directory containing the example programs. The file should be copied to (for example) /usr/local/bin, modified to reflect the local installation, and its protection set to world execute.

The man page, which directs users to the HTML form of the Users' Note, should be moved to a directory in the man search path, e.g.

cd doc
mv nag_fn_un.3 /usr/man/man3

4.2. License Management

The use of the NAG fl90 is controlled by the FLEXlm network license management system (FLEXlm is a registered trademark of Globetrotter Software Inc). This release of the NAG fl90 Library uses version 7.2g of FLEXlm. The remainder of this section describes how obtain and install a FLEXlm license key to enable the use of the Library. (Further details about FLEXlm and how it may be configured to suit your local circumstances are included in the FLEXlm End User Manual and FAQ supplied in the directory fnsol04dg/license.)

First, you need to determine the hostid of the system. This may be achieved by running the FLEXlm utility program 'lmutil' provided in fnsol04dg/license/bin/sun4_u5, using the argument 'lmhostid'. For example, if you are in the directory fnsol04dg you can use:

   ./license/bin/sun4_u5/lmutil  lmhostid

Next, contact a NAG Response Centre and request a license key. Customers in North America should contact NAG Inc, all others should contact NAG Ltd; in both cases you will need to quote your NAG site reference, NAG product code (FNSOL04DG) and the hostid you have just determined.

For the fl90, NAG will provide you with an 'uncounted license key' for use on a specific machine. This will consist of a FEATURE or INCREMENT line for the licensed product, for example:

FEATURE NAG_FN NAG 4.000 30-nov-2002 0 CBDA2041DC1BC45D2B68 "DAUB," 80896b27
(which would enable an unlimited number of instances of version 4 of the application NAG_FN, until the date specified, on the system with hostid 80896b27 only). Note that the line may be continued by escaping the newline character with '\'.

Once you have obtained the license key, store the text of it in a file, say /usr/local/lib/nag/license.dat - if you already have any FLEXlm licenced products on your system, you will need to add the new license key as an extra line in your existing file of FLEXlm license keys; you can determine the location of this with


If the environment variable LM_LICENSE_FILE is not already set, you must set it to the full pathname of the file of FLEXlm license keys; this variable will be accessed by the NAG application to confirm that a valid license exists.

For example, in the C-shell, LM_LICENSE_FILE may be set by typing:

setenv LM_LICENSE_FILE /usr/local/lib/nag/license.dat
or, in the Bourne shell, by:

No other actions are required to install an uncounted license.

4.3. PDF Documentation Installation

To install all PDF documentation material, use the Unix tar utility, e.g.
tar xvf /cdrom/pdf.tar
(assuming the CD-ROM has been mounted as /cdrom).

You may wish to move the PDF documentation files to the same location as that for other NAG products. You are encouraged to make them readily available to users, but in such a way that they are not generally accessible from outside your site.

4.4. Checking Accessibility

The installer should ensure that the advice given to users in Section 3.1 of the Users' Note (doc/un.html) is suitable for the installation. This can be done by running a few example programs following that advice. The installation can also be tested using the script nagexample.

4.5. Release to Users

The Users' Note (doc/un.html) should be checked and amended as necessary (particularly Section 3.1). It can then be made available to users directly, or be absorbed into local access information.

The following material should also be made accessible to users:

compiled library:

module information files:
example program material:
pdf documentation files

Note that the example material has been adapted, if necessary, from that printed in the NAG fl90 Manual, so that programs are suitable for execution with this implementation with no further changes. Making the example material directly available to users provides them with easily adaptable templates for their own problems.

4.6. Maintenance Level

The maintenance level of the library can be determined by writing a simple program to call procedure nag_lib_ident, which prints out details of the implementation, including title and product code, compiler and precision used, release and maintenance level.

5. Documentation

Each supported NAG fl90 site is currently provided with a printed copy of the NAG fl90 Manual (or Update). Additional copies are available for purchase; please refer to the NAG documentation order form (available on the NAG websites, see Section 6 (c)) for details of current prices.

On-line documentation is provided, in PDF form, with this implementation. Further information is contained in the Readme file on the distribution medium.

6. Support from NAG

(a) Contact with NAG

Queries concerning this document or the implementation generally should be directed initially to your local Advisory Service. If you have difficulty in making contact locally, you can contact NAG directly at one of the addresses given in the Appendix. Users subscribing to the support service are encouraged to contact one of the NAG Response Centres (see below).

(b) NAG Response Centres

The NAG Response Centres are available for general enquiries from all users and also for technical queries from sites with an annually licensed product or support service.

The Response Centres are open during office hours, but contact is possible by fax, email and phone (answering machine) at all times.

When contacting a Response Centre please quote your NAG site reference and NAG product code (FNSOL04DG).

(c) NAG Websites

The NAG websites are an information service providing items of interest to users and prospective users of NAG products and services. The information is reviewed and updated regularly and includes implementation availability, descriptions of products, downloadable software, product documentation and technical reports. The NAG websites can be accessed at

or (in North America)

or (in Japan)

(d) NAG Electronic Newsletter

If you would like to be kept up to date with news from NAG you may want to register to receive our electronic newsletter, which will alert you to special offers, announcements about new products or product/service enhancements, case studies and NAG's event diary. To register visit one of our websites or contact us at

7. User Feedback

Many factors influence the way NAG's products and services evolve and your ideas are invaluable in helping us to ensure that we meet your needs. If you would like to contribute to this process we would be pleased to receive your comments by email at Alternatively contact the appropriate NAG Response Centre who will be happy to record your comments.

Appendix - Contact Addresses

Wilkinson House
Jordan Hill Road
OXFORD  OX2 8DR                         NAG Ltd Response Centre
United Kingdom                          email:

Tel: +44 (0)1865 511245                 Tel: +44 (0)1865 311744
Fax: +44 (0)1865 310139                 Fax: +44 (0)1865 310139

1431 Opus Place, Suite 220
Downers Grove
IL 60515-1362                           NAG Inc Response Center
USA                                     email:

Tel: +1 630 971 2337                    Tel: +1 630 971 2345
Fax: +1 630 971 2706                    Fax: +1 630 971 2706

Nihon NAG KK
Hatchobori Frontier Building 2F

Tel: +81 (0)3 5542 6311
Fax: +81 (0)3 5542 6312