FNLStat : Introduction : Using Library Subprograms
Using Library Subprograms
The documentation for the routines uses the generic name and omits the prefix, and hence the entire suite of routines for that subject is documented under the generic name.
Examples that appear in the documentation also use the generic name. To further illustrate this principle, note the OWFRQ documentation (see Chapter 1, “Basic Statistics”), for tallying observation into a one-way frequency table. A description is provided for just one data type. There are two documented routines in this subject area: S_OWFRQ and D_OWFRQ.
These routines constitute single-precision and double-precision versions of the code.
The appropriate routine is identified by the Fortran 90 compiler. Use of a module is required with the routines. The naming convention for modules joins the suffix “_int” to the generic routine name. Thus, the line “use OWFRQ_INT” is inserted near the top of any routine that calls the subprogram “OWFRQ”. More inclusive modules are also available. For example, the module named “imsl_libraries” contains the interface modules for all routines in the library.