mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-10 16:09:03 +00:00
New interface for methods with global reductions.
This commit is contained in:
@@ -35,50 +35,55 @@ module psb_c_psblas_mod
|
||||
use psb_c_mat_mod, only : psb_cspmat_type
|
||||
|
||||
interface psb_gedot
|
||||
function psb_cdot_vect(x, y, desc_a,info) result(res)
|
||||
function psb_cdot_vect(x, y, desc_a,info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
complex(psb_spk_) :: res
|
||||
type(psb_c_vect_type), intent(inout) :: x, y
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cdot_vect
|
||||
function psb_cdotv(x, y, desc_a,info)
|
||||
function psb_cdotv(x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
complex(psb_spk_) :: psb_cdotv
|
||||
complex(psb_spk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cdotv
|
||||
function psb_cdot(x, y, desc_a, info, jx, jy)
|
||||
function psb_cdot(x, y, desc_a, info, jx, jy,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
complex(psb_spk_) :: psb_cdot
|
||||
complex(psb_spk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cdot
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_gedots
|
||||
subroutine psb_cdotvs(res,x, y, desc_a, info)
|
||||
subroutine psb_cdotvs(res,x, y, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
complex(psb_spk_), intent(out) :: res
|
||||
complex(psb_spk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_cdotvs
|
||||
subroutine psb_cmdots(res,x, y, desc_a,info)
|
||||
subroutine psb_cmdots(res,x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
complex(psb_spk_), intent(out) :: res(:)
|
||||
complex(psb_spk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_cmdots
|
||||
end interface
|
||||
|
||||
@@ -91,7 +96,7 @@ module psb_c_psblas_mod
|
||||
type(psb_c_vect_type), intent (inout) :: y
|
||||
complex(psb_spk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_caxpby_vect
|
||||
subroutine psb_caxpbyv(alpha, x, beta, y,&
|
||||
& desc_a, info)
|
||||
@@ -112,35 +117,38 @@ module psb_c_psblas_mod
|
||||
complex(psb_spk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: n, jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_caxpby
|
||||
end interface
|
||||
|
||||
interface psb_geamax
|
||||
function psb_camax(x, desc_a, info, jx)
|
||||
function psb_camax(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) psb_camax
|
||||
complex(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_camax
|
||||
function psb_camaxv(x, desc_a,info)
|
||||
function psb_camaxv(x, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) psb_camaxv
|
||||
complex(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_camaxv
|
||||
function psb_camax_vect(x, desc_a, info) result(res)
|
||||
function psb_camax_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_c_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_camax_vect
|
||||
end interface
|
||||
|
||||
@@ -154,69 +162,76 @@ module psb_c_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_geamaxs
|
||||
subroutine psb_camaxvs(res,x,desc_a,info)
|
||||
subroutine psb_camaxvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_), intent (out) :: res
|
||||
complex(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_camaxvs
|
||||
subroutine psb_cmamaxs(res,x,desc_a,info,jx)
|
||||
subroutine psb_cmamaxs(res,x,desc_a,info,jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_), intent (out) :: res(:)
|
||||
complex(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), optional, intent(in) :: jx
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_cmamaxs
|
||||
end interface
|
||||
|
||||
interface psb_geasum
|
||||
function psb_casum_vect(x, desc_a, info) result(res)
|
||||
function psb_casum_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_c_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_casum_vect
|
||||
function psb_casum(x, desc_a, info, jx)
|
||||
function psb_casum(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) psb_casum
|
||||
complex(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_casum
|
||||
function psb_casumv(x, desc_a, info)
|
||||
function psb_casumv(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) psb_casumv
|
||||
complex(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_casumv
|
||||
end interface
|
||||
|
||||
interface psb_geasums
|
||||
subroutine psb_casumvs(res,x,desc_a,info)
|
||||
subroutine psb_casumvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_), intent (out) :: res
|
||||
complex(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_casumvs
|
||||
subroutine psb_cmasum(res,x,desc_a,info)
|
||||
subroutine psb_cmasum(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_), intent (out) :: res(:)
|
||||
complex(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_cmasum
|
||||
end interface
|
||||
|
||||
@@ -230,30 +245,33 @@ module psb_c_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2
|
||||
function psb_cnrm2(x, desc_a, info, jx)
|
||||
function psb_cnrm2(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) psb_cnrm2
|
||||
complex(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cnrm2
|
||||
function psb_cnrm2v(x, desc_a, info)
|
||||
function psb_cnrm2v(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) psb_cnrm2v
|
||||
complex(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cnrm2v
|
||||
function psb_cnrm2_vect(x, desc_a, info) result(res)
|
||||
function psb_cnrm2_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_c_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cnrm2_vect
|
||||
end interface
|
||||
|
||||
@@ -264,25 +282,27 @@ module psb_c_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2s
|
||||
subroutine psb_cnrm2vs(res,x,desc_a,info)
|
||||
subroutine psb_cnrm2vs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_), intent (out) :: res
|
||||
complex(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_cnrm2vs
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_spnrmi
|
||||
function psb_cnrmi(a, desc_a,info)
|
||||
function psb_cnrmi(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) :: psb_cnrmi
|
||||
type(psb_cspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cnrmi
|
||||
end interface
|
||||
|
||||
@@ -293,13 +313,14 @@ module psb_c_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_spnrm1
|
||||
function psb_cspnrm1(a, desc_a,info)
|
||||
function psb_cspnrm1(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_c_vect_type, psb_cspmat_type
|
||||
real(psb_spk_) :: psb_cspnrm1
|
||||
real(psb_spk_) :: psb_cspnrm1
|
||||
type(psb_cspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_cspnrm1
|
||||
end interface
|
||||
|
||||
|
||||
@@ -35,50 +35,55 @@ module psb_d_psblas_mod
|
||||
use psb_d_mat_mod, only : psb_dspmat_type
|
||||
|
||||
interface psb_gedot
|
||||
function psb_ddot_vect(x, y, desc_a,info) result(res)
|
||||
function psb_ddot_vect(x, y, desc_a,info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_d_vect_type), intent(inout) :: x, y
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_ddot_vect
|
||||
function psb_ddotv(x, y, desc_a,info)
|
||||
function psb_ddotv(x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: psb_ddotv
|
||||
real(psb_dpk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_ddotv
|
||||
function psb_ddot(x, y, desc_a, info, jx, jy)
|
||||
function psb_ddot(x, y, desc_a, info, jx, jy,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: psb_ddot
|
||||
real(psb_dpk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_ddot
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_gedots
|
||||
subroutine psb_ddotvs(res,x, y, desc_a, info)
|
||||
subroutine psb_ddotvs(res,x, y, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent(out) :: res
|
||||
real(psb_dpk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_ddotvs
|
||||
subroutine psb_dmdots(res,x, y, desc_a,info)
|
||||
subroutine psb_dmdots(res,x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent(out) :: res(:)
|
||||
real(psb_dpk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_dmdots
|
||||
end interface
|
||||
|
||||
@@ -91,7 +96,7 @@ module psb_d_psblas_mod
|
||||
type(psb_d_vect_type), intent (inout) :: y
|
||||
real(psb_dpk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_daxpby_vect
|
||||
subroutine psb_daxpbyv(alpha, x, beta, y,&
|
||||
& desc_a, info)
|
||||
@@ -112,35 +117,38 @@ module psb_d_psblas_mod
|
||||
real(psb_dpk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: n, jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_daxpby
|
||||
end interface
|
||||
|
||||
interface psb_geamax
|
||||
function psb_damax(x, desc_a, info, jx)
|
||||
function psb_damax(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) psb_damax
|
||||
real(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_damax
|
||||
function psb_damaxv(x, desc_a,info)
|
||||
function psb_damaxv(x, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) psb_damaxv
|
||||
real(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_damaxv
|
||||
function psb_damax_vect(x, desc_a, info) result(res)
|
||||
function psb_damax_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_d_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_damax_vect
|
||||
end interface
|
||||
|
||||
@@ -154,69 +162,76 @@ module psb_d_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_geamaxs
|
||||
subroutine psb_damaxvs(res,x,desc_a,info)
|
||||
subroutine psb_damaxvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent (out) :: res
|
||||
real(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_damaxvs
|
||||
subroutine psb_dmamaxs(res,x,desc_a,info,jx)
|
||||
subroutine psb_dmamaxs(res,x,desc_a,info,jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent (out) :: res(:)
|
||||
real(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), optional, intent(in) :: jx
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_dmamaxs
|
||||
end interface
|
||||
|
||||
interface psb_geasum
|
||||
function psb_dasum_vect(x, desc_a, info) result(res)
|
||||
function psb_dasum_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_d_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dasum_vect
|
||||
function psb_dasum(x, desc_a, info, jx)
|
||||
function psb_dasum(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) psb_dasum
|
||||
real(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dasum
|
||||
function psb_dasumv(x, desc_a, info)
|
||||
function psb_dasumv(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) psb_dasumv
|
||||
real(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dasumv
|
||||
end interface
|
||||
|
||||
interface psb_geasums
|
||||
subroutine psb_dasumvs(res,x,desc_a,info)
|
||||
subroutine psb_dasumvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent (out) :: res
|
||||
real(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_dasumvs
|
||||
subroutine psb_dmasum(res,x,desc_a,info)
|
||||
subroutine psb_dmasum(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent (out) :: res(:)
|
||||
real(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_dmasum
|
||||
end interface
|
||||
|
||||
@@ -230,30 +245,33 @@ module psb_d_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2
|
||||
function psb_dnrm2(x, desc_a, info, jx)
|
||||
function psb_dnrm2(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) psb_dnrm2
|
||||
real(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dnrm2
|
||||
function psb_dnrm2v(x, desc_a, info)
|
||||
function psb_dnrm2v(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) psb_dnrm2v
|
||||
real(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dnrm2v
|
||||
function psb_dnrm2_vect(x, desc_a, info) result(res)
|
||||
function psb_dnrm2_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_d_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dnrm2_vect
|
||||
end interface
|
||||
|
||||
@@ -264,25 +282,27 @@ module psb_d_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2s
|
||||
subroutine psb_dnrm2vs(res,x,desc_a,info)
|
||||
subroutine psb_dnrm2vs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_), intent (out) :: res
|
||||
real(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_dnrm2vs
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_spnrmi
|
||||
function psb_dnrmi(a, desc_a,info)
|
||||
function psb_dnrmi(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: psb_dnrmi
|
||||
type(psb_dspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dnrmi
|
||||
end interface
|
||||
|
||||
@@ -293,13 +313,14 @@ module psb_d_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_spnrm1
|
||||
function psb_dspnrm1(a, desc_a,info)
|
||||
function psb_dspnrm1(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_d_vect_type, psb_dspmat_type
|
||||
real(psb_dpk_) :: psb_dspnrm1
|
||||
real(psb_dpk_) :: psb_dspnrm1
|
||||
type(psb_dspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_dspnrm1
|
||||
end interface
|
||||
|
||||
|
||||
@@ -35,50 +35,55 @@ module psb_s_psblas_mod
|
||||
use psb_s_mat_mod, only : psb_sspmat_type
|
||||
|
||||
interface psb_gedot
|
||||
function psb_sdot_vect(x, y, desc_a,info) result(res)
|
||||
function psb_sdot_vect(x, y, desc_a,info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_s_vect_type), intent(inout) :: x, y
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sdot_vect
|
||||
function psb_sdotv(x, y, desc_a,info)
|
||||
function psb_sdotv(x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: psb_sdotv
|
||||
real(psb_spk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sdotv
|
||||
function psb_sdot(x, y, desc_a, info, jx, jy)
|
||||
function psb_sdot(x, y, desc_a, info, jx, jy,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: psb_sdot
|
||||
real(psb_spk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sdot
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_gedots
|
||||
subroutine psb_sdotvs(res,x, y, desc_a, info)
|
||||
subroutine psb_sdotvs(res,x, y, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent(out) :: res
|
||||
real(psb_spk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_sdotvs
|
||||
subroutine psb_smdots(res,x, y, desc_a,info)
|
||||
subroutine psb_smdots(res,x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent(out) :: res(:)
|
||||
real(psb_spk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_smdots
|
||||
end interface
|
||||
|
||||
@@ -91,7 +96,7 @@ module psb_s_psblas_mod
|
||||
type(psb_s_vect_type), intent (inout) :: y
|
||||
real(psb_spk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_saxpby_vect
|
||||
subroutine psb_saxpbyv(alpha, x, beta, y,&
|
||||
& desc_a, info)
|
||||
@@ -112,35 +117,38 @@ module psb_s_psblas_mod
|
||||
real(psb_spk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: n, jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_saxpby
|
||||
end interface
|
||||
|
||||
interface psb_geamax
|
||||
function psb_samax(x, desc_a, info, jx)
|
||||
function psb_samax(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) psb_samax
|
||||
real(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_samax
|
||||
function psb_samaxv(x, desc_a,info)
|
||||
function psb_samaxv(x, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) psb_samaxv
|
||||
real(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_samaxv
|
||||
function psb_samax_vect(x, desc_a, info) result(res)
|
||||
function psb_samax_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_s_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_samax_vect
|
||||
end interface
|
||||
|
||||
@@ -154,69 +162,76 @@ module psb_s_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_geamaxs
|
||||
subroutine psb_samaxvs(res,x,desc_a,info)
|
||||
subroutine psb_samaxvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent (out) :: res
|
||||
real(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_samaxvs
|
||||
subroutine psb_smamaxs(res,x,desc_a,info,jx)
|
||||
subroutine psb_smamaxs(res,x,desc_a,info,jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent (out) :: res(:)
|
||||
real(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), optional, intent(in) :: jx
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_smamaxs
|
||||
end interface
|
||||
|
||||
interface psb_geasum
|
||||
function psb_sasum_vect(x, desc_a, info) result(res)
|
||||
function psb_sasum_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_s_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sasum_vect
|
||||
function psb_sasum(x, desc_a, info, jx)
|
||||
function psb_sasum(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) psb_sasum
|
||||
real(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sasum
|
||||
function psb_sasumv(x, desc_a, info)
|
||||
function psb_sasumv(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) psb_sasumv
|
||||
real(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sasumv
|
||||
end interface
|
||||
|
||||
interface psb_geasums
|
||||
subroutine psb_sasumvs(res,x,desc_a,info)
|
||||
subroutine psb_sasumvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent (out) :: res
|
||||
real(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_sasumvs
|
||||
subroutine psb_smasum(res,x,desc_a,info)
|
||||
subroutine psb_smasum(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent (out) :: res(:)
|
||||
real(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_smasum
|
||||
end interface
|
||||
|
||||
@@ -230,30 +245,33 @@ module psb_s_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2
|
||||
function psb_snrm2(x, desc_a, info, jx)
|
||||
function psb_snrm2(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) psb_snrm2
|
||||
real(psb_spk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_snrm2
|
||||
function psb_snrm2v(x, desc_a, info)
|
||||
function psb_snrm2v(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) psb_snrm2v
|
||||
real(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_snrm2v
|
||||
function psb_snrm2_vect(x, desc_a, info) result(res)
|
||||
function psb_snrm2_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: res
|
||||
type(psb_s_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_snrm2_vect
|
||||
end interface
|
||||
|
||||
@@ -264,25 +282,27 @@ module psb_s_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2s
|
||||
subroutine psb_snrm2vs(res,x,desc_a,info)
|
||||
subroutine psb_snrm2vs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_), intent (out) :: res
|
||||
real(psb_spk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_snrm2vs
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_spnrmi
|
||||
function psb_snrmi(a, desc_a,info)
|
||||
function psb_snrmi(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: psb_snrmi
|
||||
type(psb_sspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_snrmi
|
||||
end interface
|
||||
|
||||
@@ -293,13 +313,14 @@ module psb_s_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_spnrm1
|
||||
function psb_sspnrm1(a, desc_a,info)
|
||||
function psb_sspnrm1(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_spk_, psb_ipk_, &
|
||||
& psb_s_vect_type, psb_sspmat_type
|
||||
real(psb_spk_) :: psb_sspnrm1
|
||||
real(psb_spk_) :: psb_sspnrm1
|
||||
type(psb_sspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_sspnrm1
|
||||
end interface
|
||||
|
||||
|
||||
@@ -35,50 +35,55 @@ module psb_z_psblas_mod
|
||||
use psb_z_mat_mod, only : psb_zspmat_type
|
||||
|
||||
interface psb_gedot
|
||||
function psb_zdot_vect(x, y, desc_a,info) result(res)
|
||||
function psb_zdot_vect(x, y, desc_a,info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
complex(psb_dpk_) :: res
|
||||
type(psb_z_vect_type), intent(inout) :: x, y
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zdot_vect
|
||||
function psb_zdotv(x, y, desc_a,info)
|
||||
function psb_zdotv(x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
complex(psb_dpk_) :: psb_zdotv
|
||||
complex(psb_dpk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zdotv
|
||||
function psb_zdot(x, y, desc_a, info, jx, jy)
|
||||
function psb_zdot(x, y, desc_a, info, jx, jy,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
complex(psb_dpk_) :: psb_zdot
|
||||
complex(psb_dpk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zdot
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_gedots
|
||||
subroutine psb_zdotvs(res,x, y, desc_a, info)
|
||||
subroutine psb_zdotvs(res,x, y, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
complex(psb_dpk_), intent(out) :: res
|
||||
complex(psb_dpk_), intent(in) :: x(:), y(:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_zdotvs
|
||||
subroutine psb_zmdots(res,x, y, desc_a,info)
|
||||
subroutine psb_zmdots(res,x, y, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
complex(psb_dpk_), intent(out) :: res(:)
|
||||
complex(psb_dpk_), intent(in) :: x(:,:), y(:,:)
|
||||
type(psb_desc_type), intent(in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_zmdots
|
||||
end interface
|
||||
|
||||
@@ -91,7 +96,7 @@ module psb_z_psblas_mod
|
||||
type(psb_z_vect_type), intent (inout) :: y
|
||||
complex(psb_dpk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_zaxpby_vect
|
||||
subroutine psb_zaxpbyv(alpha, x, beta, y,&
|
||||
& desc_a, info)
|
||||
@@ -112,35 +117,38 @@ module psb_z_psblas_mod
|
||||
complex(psb_dpk_), intent (in) :: alpha, beta
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent(in) :: n, jx, jy
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_zaxpby
|
||||
end interface
|
||||
|
||||
interface psb_geamax
|
||||
function psb_zamax(x, desc_a, info, jx)
|
||||
function psb_zamax(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) psb_zamax
|
||||
complex(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zamax
|
||||
function psb_zamaxv(x, desc_a,info)
|
||||
function psb_zamaxv(x, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) psb_zamaxv
|
||||
complex(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zamaxv
|
||||
function psb_zamax_vect(x, desc_a, info) result(res)
|
||||
function psb_zamax_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_z_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zamax_vect
|
||||
end interface
|
||||
|
||||
@@ -154,69 +162,76 @@ module psb_z_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_geamaxs
|
||||
subroutine psb_zamaxvs(res,x,desc_a,info)
|
||||
subroutine psb_zamaxvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_), intent (out) :: res
|
||||
complex(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_zamaxvs
|
||||
subroutine psb_zmamaxs(res,x,desc_a,info,jx)
|
||||
subroutine psb_zmamaxs(res,x,desc_a,info,jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_), intent (out) :: res(:)
|
||||
complex(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), optional, intent(in) :: jx
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_zmamaxs
|
||||
end interface
|
||||
|
||||
interface psb_geasum
|
||||
function psb_zasum_vect(x, desc_a, info) result(res)
|
||||
function psb_zasum_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_z_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zasum_vect
|
||||
function psb_zasum(x, desc_a, info, jx)
|
||||
function psb_zasum(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) psb_zasum
|
||||
complex(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zasum
|
||||
function psb_zasumv(x, desc_a, info)
|
||||
function psb_zasumv(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) psb_zasumv
|
||||
complex(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zasumv
|
||||
end interface
|
||||
|
||||
interface psb_geasums
|
||||
subroutine psb_zasumvs(res,x,desc_a,info)
|
||||
subroutine psb_zasumvs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_), intent (out) :: res
|
||||
complex(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_zasumvs
|
||||
subroutine psb_zmasum(res,x,desc_a,info)
|
||||
subroutine psb_zmasum(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_), intent (out) :: res(:)
|
||||
complex(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_zmasum
|
||||
end interface
|
||||
|
||||
@@ -230,30 +245,33 @@ module psb_z_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2
|
||||
function psb_znrm2(x, desc_a, info, jx)
|
||||
function psb_znrm2(x, desc_a, info, jx,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) psb_znrm2
|
||||
complex(psb_dpk_), intent (in) :: x(:,:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), optional, intent (in) :: jx
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_znrm2
|
||||
function psb_znrm2v(x, desc_a, info)
|
||||
function psb_znrm2v(x, desc_a, info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) psb_znrm2v
|
||||
complex(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_znrm2v
|
||||
function psb_znrm2_vect(x, desc_a, info) result(res)
|
||||
function psb_znrm2_vect(x, desc_a, info,global) result(res)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) :: res
|
||||
type(psb_z_vect_type), intent (inout) :: x
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_znrm2_vect
|
||||
end interface
|
||||
|
||||
@@ -264,25 +282,27 @@ module psb_z_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_genrm2s
|
||||
subroutine psb_znrm2vs(res,x,desc_a,info)
|
||||
subroutine psb_znrm2vs(res,x,desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_), intent (out) :: res
|
||||
complex(psb_dpk_), intent (in) :: x(:)
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end subroutine psb_znrm2vs
|
||||
end interface
|
||||
|
||||
|
||||
interface psb_spnrmi
|
||||
function psb_znrmi(a, desc_a,info)
|
||||
function psb_znrmi(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) :: psb_znrmi
|
||||
type(psb_zspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_znrmi
|
||||
end interface
|
||||
|
||||
@@ -293,13 +313,14 @@ module psb_z_psblas_mod
|
||||
#endif
|
||||
|
||||
interface psb_spnrm1
|
||||
function psb_zspnrm1(a, desc_a,info)
|
||||
function psb_zspnrm1(a, desc_a,info,global)
|
||||
import :: psb_desc_type, psb_dpk_, psb_ipk_, &
|
||||
& psb_z_vect_type, psb_zspmat_type
|
||||
real(psb_dpk_) :: psb_zspnrm1
|
||||
real(psb_dpk_) :: psb_zspnrm1
|
||||
type(psb_zspmat_type), intent (in) :: a
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
type(psb_desc_type), intent (in) :: desc_a
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
logical, intent(in), optional :: global
|
||||
end function psb_zspnrm1
|
||||
end interface
|
||||
|
||||
|
||||
Reference in New Issue
Block a user