|
|
|
@ -30,7 +30,8 @@
|
|
|
|
|
!!$
|
|
|
|
|
!!$
|
|
|
|
|
module psb_i_tools_mod
|
|
|
|
|
use psb_descriptor_type, only : psb_desc_type, psb_spk_, psb_ipk_, psb_success_
|
|
|
|
|
use psb_descriptor_type, only : psb_desc_type, psb_ipk_, psb_success_
|
|
|
|
|
use psb_i_vect_mod, only : psb_i_base_vect_type, psb_i_vect_type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface psb_geall
|
|
|
|
@ -48,6 +49,14 @@ module psb_i_tools_mod
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
integer(psb_ipk_), optional, intent(in) :: n
|
|
|
|
|
end subroutine psb_iallocv
|
|
|
|
|
subroutine psb_ialloc_vect(x, desc_a,info,n)
|
|
|
|
|
import :: psb_desc_type, psb_ipk_, &
|
|
|
|
|
& psb_i_base_vect_type, psb_i_vect_type
|
|
|
|
|
type(psb_i_vect_type), intent(out) :: x
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
|
integer(psb_ipk_),intent(out) :: info
|
|
|
|
|
integer(psb_ipk_), optional, intent(in) :: n
|
|
|
|
|
end subroutine psb_ialloc_vect
|
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -64,6 +73,15 @@ module psb_i_tools_mod
|
|
|
|
|
integer(psb_ipk_), allocatable, intent(inout) :: x(:)
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
end subroutine psb_iasbv
|
|
|
|
|
subroutine psb_iasb_vect(x, desc_a, info,mold, scratch)
|
|
|
|
|
import :: psb_desc_type, psb_ipk_, &
|
|
|
|
|
& psb_i_base_vect_type, psb_i_vect_type
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
|
type(psb_i_vect_type), intent(inout) :: x
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
class(psb_i_base_vect_type), intent(in), optional :: mold
|
|
|
|
|
logical, intent(in), optional :: scratch
|
|
|
|
|
end subroutine psb_iasb_vect
|
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -80,10 +98,17 @@ module psb_i_tools_mod
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
end subroutine psb_ifreev
|
|
|
|
|
subroutine psb_ifree_vect(x, desc_a, info)
|
|
|
|
|
import :: psb_desc_type, psb_ipk_, &
|
|
|
|
|
& psb_i_base_vect_type, psb_i_vect_type
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
|
type(psb_i_vect_type), intent(inout) :: x
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
end subroutine psb_ifree_vect
|
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
interface psb_geins
|
|
|
|
|
subroutine psb_iinsi(m,irw,val, x,desc_a,info,dupl)
|
|
|
|
|
subroutine psb_iinsi(m,irw,val, x,desc_a,info,dupl,local)
|
|
|
|
|
import :: psb_ipk_, psb_desc_type
|
|
|
|
|
integer(psb_ipk_), intent(in) :: m
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
@ -92,8 +117,9 @@ module psb_i_tools_mod
|
|
|
|
|
integer(psb_ipk_), intent(in) :: val(:,:)
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
integer(psb_ipk_), optional, intent(in) :: dupl
|
|
|
|
|
logical, intent(in), optional :: local
|
|
|
|
|
end subroutine psb_iinsi
|
|
|
|
|
subroutine psb_iinsvi(m, irw,val, x,desc_a,info,dupl)
|
|
|
|
|
subroutine psb_iinsvi(m, irw,val, x,desc_a,info,dupl,local)
|
|
|
|
|
import :: psb_ipk_, psb_desc_type
|
|
|
|
|
integer(psb_ipk_), intent(in) :: m
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
@ -102,7 +128,20 @@ module psb_i_tools_mod
|
|
|
|
|
integer(psb_ipk_), intent(in) :: val(:)
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
integer(psb_ipk_), optional, intent(in) :: dupl
|
|
|
|
|
logical, intent(in), optional :: local
|
|
|
|
|
end subroutine psb_iinsvi
|
|
|
|
|
subroutine psb_iins_vect(m,irw,val,x,desc_a,info,dupl,local)
|
|
|
|
|
import :: psb_desc_type, psb_ipk_, &
|
|
|
|
|
& psb_i_base_vect_type, psb_i_vect_type
|
|
|
|
|
integer(psb_ipk_), intent(in) :: m
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_a
|
|
|
|
|
type(psb_i_vect_type), intent(inout) :: x
|
|
|
|
|
integer(psb_ipk_), intent(in) :: irw(:)
|
|
|
|
|
integer(psb_ipk_), intent(in) :: val(:)
|
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
|
integer(psb_ipk_), optional, intent(in) :: dupl
|
|
|
|
|
logical, intent(in), optional :: local
|
|
|
|
|
end subroutine psb_iins_vect
|
|
|
|
|
end interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|