QR_MUMPS
Functions/Subroutines
dqrm_readmat.F90 File Reference

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

subroutine dqrm_readmat ( character(len=*), intent(in)  matfile,
type(dqrm_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 dqrm_spmat_type data where the matrix will be stored

Definition at line 54 of file dqrm_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().