PURPOSE

To read a block of data from a FMS Vector File.

SYNOPSIS

CALL FMSGET (LUFMS, NROWS, NCOLS, IROW1, JCOL1, A(NROWS,NCOLS), LDA)

INPUT PARAMETERS

OUTPUT PARAMETERS:

FMS PARAMETERS:

The following FMS Parameters are especially important to this routine:
Parameter Description
IOKIDS Allow children to access a file

DESCRIPTION:

This subroutine provides read access to FMS Vector files. The array DATA(NROWS,NCOLS) is transferred directly from the file LUFMS without buffering.

To use this subroutine, the file LUFMS must be opened and populated with data. Using this subroutine involves the following 3 steps:

  1. Initialize
    CALL FMSGET (LUFMS, 0, 0, 0, 0, 0, 0)
    The 0 value arguments direct FMS to initialize the files for read access. This call must precede calls to FMSGET which transfer data.
  2. Transfer data
    CALL FMSGET (LUFMS, NROWS, NCOLS, IROW1, JCOL1, A(NROWS,NCOLS), LDA)
    The second step is to call FMSGET as many times as you want to read the data.
  3. End
    CALL FMSGET (LUFMS, 0, 0, NUMEQ+1, 0, 0, 0)
    where the value of IROW1=NUMEQ+1 is greater than the number of equations. This call directs FMS to release any storage.
You may call FMSGET from subroutines you are running in parallel (which you started by calls to FMSPAR). To use this feature, you must direct FMS to open the file LUFMS for access by multiple processes. Use the FMS Parameter IOKIDS before the call which opens file LUFMS.

Examples

Example 13 further illustrates how to use FMSGET to populate a matrix and vectors.