|
|
@ -52,7 +52,7 @@ subroutine mld_c_bwgs_solver_apply(alpha,sv,x,beta,y,desc_data,&
|
|
|
|
character, intent(in), optional :: init
|
|
|
|
character, intent(in), optional :: init
|
|
|
|
complex(psb_spk_),intent(inout), optional :: initu(:)
|
|
|
|
complex(psb_spk_),intent(inout), optional :: initu(:)
|
|
|
|
|
|
|
|
|
|
|
|
integer(psb_ipk_) :: n_row,n_col, itx
|
|
|
|
integer(psb_ipk_) :: n_row,n_col, itx, itxst
|
|
|
|
complex(psb_spk_), pointer :: ww(:), aux(:), tx(:),ty(:)
|
|
|
|
complex(psb_spk_), pointer :: ww(:), aux(:), tx(:),ty(:)
|
|
|
|
complex(psb_spk_), allocatable :: temp(:),wv(:),xit(:)
|
|
|
|
complex(psb_spk_), allocatable :: temp(:),wv(:),xit(:)
|
|
|
|
integer(psb_ipk_) :: ictxt,np,me,i, err_act
|
|
|
|
integer(psb_ipk_) :: ictxt,np,me,i, err_act
|
|
|
@ -119,9 +119,12 @@ subroutine mld_c_bwgs_solver_apply(alpha,sv,x,beta,y,desc_data,&
|
|
|
|
|
|
|
|
|
|
|
|
call psb_geasb(wv,desc_data,info)
|
|
|
|
call psb_geasb(wv,desc_data,info)
|
|
|
|
call psb_geasb(xit,desc_data,info)
|
|
|
|
call psb_geasb(xit,desc_data,info)
|
|
|
|
|
|
|
|
itxst = 1
|
|
|
|
select case (init_)
|
|
|
|
select case (init_)
|
|
|
|
case('Z')
|
|
|
|
case('Z')
|
|
|
|
xit(:) = czero
|
|
|
|
call psb_geaxpby(cone,x,czero,wv,desc_data,info)
|
|
|
|
|
|
|
|
call psb_spsm(cone,sv%u,wv,czero,xit,desc_data,info)
|
|
|
|
|
|
|
|
itxst = 2
|
|
|
|
case('Y')
|
|
|
|
case('Y')
|
|
|
|
call psb_geaxpby(cone,y,czero,xit,desc_data,info)
|
|
|
|
call psb_geaxpby(cone,y,czero,xit,desc_data,info)
|
|
|
|
case('U')
|
|
|
|
case('U')
|
|
|
@ -144,7 +147,7 @@ subroutine mld_c_bwgs_solver_apply(alpha,sv,x,beta,y,desc_data,&
|
|
|
|
! Fixed number of iterations
|
|
|
|
! Fixed number of iterations
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
do itx=1,sv%sweeps
|
|
|
|
do itx=itxst, sv%sweeps
|
|
|
|
call psb_geaxpby(cone,x,czero,wv,desc_data,info)
|
|
|
|
call psb_geaxpby(cone,x,czero,wv,desc_data,info)
|
|
|
|
! Update with L. The off-diagonal block is taken care
|
|
|
|
! Update with L. The off-diagonal block is taken care
|
|
|
|
! from the Jacobi smoother, hence this is purely local.
|
|
|
|
! from the Jacobi smoother, hence this is purely local.
|
|
|
|