next up previous contents
Next: mm_mat_write Write Up: Utilities Previous: mm_mat_read Read   Contents

mm_array_read -- Read a dense array from a file in the MatrixMarket format


\begin{lstlisting}
call mm_array_read(b, iret, iunit, filename)
\end{lstlisting}

Type:
Asynchronous.
On Entry
filename
The name of the file to be read.
Type:optional.
Specified as: a character variable containing a valid file name, or -, in which case the default input unit 5 (i.e. standard input in Unix jargon) is used. Default: -.
iunit
The Fortran file unit number.
Type:optional.
Specified as: an integer value. Only meaningful if filename is not -.

On Return
b
Rigth hand side(s).
Type: required
An array of type real or complex, rank 1 or 2 and having the ALLOCATABLE attribute; will be allocated and filled in if the input file contains a right hand side, otherwise will be left in the UNALLOCATED state.
iret
Error code.
Type: required
An integer value; 0 means no error has been detected.