|
|
@ -2676,10 +2676,10 @@ contains
|
|
|
|
implicit none
|
|
|
|
implicit none
|
|
|
|
|
|
|
|
|
|
|
|
integer(psb_ipk_), intent(in) :: nz, imin,imax,jmin,jmax,maxsz
|
|
|
|
integer(psb_ipk_), intent(in) :: nz, imin,imax,jmin,jmax,maxsz
|
|
|
|
integer(psb_ipk_), intent(in) :: ia(:),ja(:)
|
|
|
|
integer(psb_ipk_), intent(in) :: ia(*),ja(*)
|
|
|
|
integer(psb_ipk_), intent(inout) :: nza,ia1(:),ia2(:)
|
|
|
|
integer(psb_ipk_), intent(inout) :: nza,ia1(*),ia2(*)
|
|
|
|
real(psb_dpk_), intent(in) :: val(:)
|
|
|
|
real(psb_dpk_), intent(in) :: val(*)
|
|
|
|
real(psb_dpk_), intent(inout) :: aspk(:)
|
|
|
|
real(psb_dpk_), intent(inout) :: aspk(*)
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
|
|
|
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
|
|
|
integer(psb_ipk_) :: i,ir,ic,ng
|
|
|
|
integer(psb_ipk_) :: i,ir,ic,ng
|
|
|
@ -2696,10 +2696,10 @@ contains
|
|
|
|
ic = gtl(ic)
|
|
|
|
ic = gtl(ic)
|
|
|
|
if ((ir >=imin).and.(ir<=imax).and.(ic>=jmin).and.(ic<=jmax)) then
|
|
|
|
if ((ir >=imin).and.(ir<=imax).and.(ic>=jmin).and.(ic<=jmax)) then
|
|
|
|
nza = nza + 1
|
|
|
|
nza = nza + 1
|
|
|
|
if (nza > maxsz) then
|
|
|
|
!!$ if (nza > maxsz) then
|
|
|
|
info = -91
|
|
|
|
!!$ info = -91
|
|
|
|
return
|
|
|
|
!!$ return
|
|
|
|
endif
|
|
|
|
!!$ endif
|
|
|
|
ia1(nza) = ir
|
|
|
|
ia1(nza) = ir
|
|
|
|
ia2(nza) = ic
|
|
|
|
ia2(nza) = ic
|
|
|
|
aspk(nza) = val(i)
|
|
|
|
aspk(nza) = val(i)
|
|
|
@ -2713,10 +2713,10 @@ contains
|
|
|
|
ic = ja(i)
|
|
|
|
ic = ja(i)
|
|
|
|
if ((ir >=imin).and.(ir<=imax).and.(ic>=jmin).and.(ic<=jmax)) then
|
|
|
|
if ((ir >=imin).and.(ir<=imax).and.(ic>=jmin).and.(ic<=jmax)) then
|
|
|
|
nza = nza + 1
|
|
|
|
nza = nza + 1
|
|
|
|
if (nza > maxsz) then
|
|
|
|
!!$ if (nza > maxsz) then
|
|
|
|
info = -92
|
|
|
|
!!$ info = -92
|
|
|
|
return
|
|
|
|
!!$ return
|
|
|
|
endif
|
|
|
|
!!$ endif
|
|
|
|
ia1(nza) = ir
|
|
|
|
ia1(nza) = ir
|
|
|
|
ia2(nza) = ic
|
|
|
|
ia2(nza) = ic
|
|
|
|
aspk(nza) = val(i)
|
|
|
|
aspk(nza) = val(i)
|
|
|
|