QR_MUMPS
Functions/Subroutines
qrm_readmat.F90 File Reference

Contains a routine which can read a matrix from a Matrix-Market file. More...

Go to the source code of this file.

Functions/Subroutines

subroutine _qrm_readmat (matfile, qrm_mat, fakec)
 This subroutine reads a Matrix Market matrix from a file and stores it on the host processor. More...
 

Detailed Description

Contains a routine which can read a matrix from a Matrix-Market file.

Date
2016-01-29 22:22:30 +0100 (Fri, 29 Jan 2016)
Author
abuttari
Version
1.1
Revision
2075

Definition in file qrm_readmat.F90.

Function/Subroutine Documentation

subroutine _qrm_readmat ( character(len=*), intent(in)  matfile,
type(_qrm_spmat_type), intent(inout)  qrm_mat,
logical, optional  fakec 
)

This subroutine reads a Matrix Market matrix from a file and stores it on the host processor.

Parameters
[in]matfilea string containing the name of the matrix file
[in]fakecan optional logical argument which controls how a complex matrix is built when reading a file with a real one.
  • .true. : the imaginary part of the matrix coefficients is set to be equal to the real part. This is mostly used for testing purposes due to the lack or complex matrices
  • .false. : the imaginary part is set to zero. This is the default when fakec is not present

Output: qrm_mat - a _qrm_spmat_type data where the matrix will be stored

Definition at line 54 of file qrm_readmat.F90.

References qrm_error_mod::qrm_abort_, qrm_error_mod::qrm_err_act_restore(), qrm_error_mod::qrm_err_act_save(), qrm_error_mod::qrm_err_check(), and qrm_error_mod::qrm_err_push().