QR_MUMPS
Functions/Subroutines
dqrm_residual_norm.F90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine dqrm_residual_norm2d (qrm_mat, b, x, nrm)
 This routine computes the scaled norm of multiple residuals. More...
 
subroutine dqrm_residual_norm1d (qrm_mat, b, x, nrm)
 This routine computes the scaled norm of the residual. More...
 

Function/Subroutine Documentation

subroutine dqrm_residual_norm1d ( type(dqrm_spmat_type qrm_mat,
real(kind(1.d0)), dimension(:)  b,
real(kind(1.d0)), dimension(:)  x,
real(kind(1.d0))  nrm 
)

This routine computes the scaled norm of the residual.

This routine computes the norm of the scaled residual, i.e., ||r||/||A|| for a single RHS.

Parameters
[in]qrm_mata qrm_spmat_type data which contains the input matrix.
[in,out]bthe RHSs. A 1D array of leading dimension qrm_matm. On output it will contain the residual
[in]xthe solution
[out]nrmthe residual norm

Definition at line 122 of file dqrm_residual_norm.F90.

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

Referenced by dqrm_methods_mod::dqrm_residual_norm1dw().

subroutine dqrm_residual_norm2d ( type(dqrm_spmat_type qrm_mat,
real(kind(1.d0)), dimension(:,:)  b,
real(kind(1.d0)), dimension(:,:)  x,
real(kind(1.d0)), dimension(:)  nrm 
)

This routine computes the scaled norm of multiple residuals.

This routine computes the norm of the scaled residual, i.e., ||r||/||A|| for a single RHS.

Parameters
[in]qrm_mata qrm_spmat_type data which contains the input matrix.
[in,out]bthe RHSs. A 1D array of leading dimension qrm_matm. On output it will contain the residual
[in]xthe solution
[out]nrmthe residual norm

Definition at line 51 of file dqrm_residual_norm.F90.

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

Referenced by dqrm_methods_mod::dqrm_residual_norm2dw().