Go To Top Go Up Go Back Go Forward

FMSGET

PURPOSE: Read a FMS Vector File

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.

You then initialize FMSGET to receive data by making the following call:

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.

The second step is to call FMSGET as many times as you want to read the data.

The final step is to direct FMS to release any storage. This is accomplished by making the following call:

CALL FMSGET (LUFMS, 0, 0, NUMEQ+1, 0, 0, 0)

where the value of IROW1=NUMEQ+1 is greater than the number of equations.

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.
Go To Top Go Up Go Back Go Forward
Copyright © Multipath Corporation