|
|
|
@ -180,7 +180,9 @@ module mld_d_prec_type
|
|
|
|
|
procedure, pass(sv) :: check => d_base_solver_check
|
|
|
|
|
procedure, pass(sv) :: dump => d_base_solver_dmp
|
|
|
|
|
procedure, pass(sv) :: build => d_base_solver_bld
|
|
|
|
|
procedure, pass(sv) :: apply => d_base_solver_apply
|
|
|
|
|
procedure, pass(sv) :: apply_v => d_base_solver_apply_vect
|
|
|
|
|
procedure, pass(sv) :: apply_a => d_base_solver_apply
|
|
|
|
|
generic, public :: apply => apply_a, apply_v
|
|
|
|
|
procedure, pass(sv) :: free => d_base_solver_free
|
|
|
|
|
procedure, pass(sv) :: seti => d_base_solver_seti
|
|
|
|
|
procedure, pass(sv) :: setc => d_base_solver_setc
|
|
|
|
@ -1021,6 +1023,40 @@ contains
|
|
|
|
|
|
|
|
|
|
end subroutine d_base_solver_apply
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subroutine d_base_solver_apply_vect(alpha,sv,x,beta,y,desc_data,trans,work,info)
|
|
|
|
|
use psb_base_mod
|
|
|
|
|
type(psb_desc_type), intent(in) :: desc_data
|
|
|
|
|
class(mld_d_base_solver_type), intent(in) :: sv
|
|
|
|
|
type(psb_d_vect_type),intent(inout) :: x
|
|
|
|
|
type(psb_d_vect_type),intent(inout) :: y
|
|
|
|
|
real(psb_dpk_),intent(in) :: alpha,beta
|
|
|
|
|
character(len=1),intent(in) :: trans
|
|
|
|
|
real(psb_dpk_),target, intent(inout) :: work(:)
|
|
|
|
|
integer, intent(out) :: info
|
|
|
|
|
|
|
|
|
|
Integer :: err_act
|
|
|
|
|
character(len=20) :: name='d_base_solver_apply'
|
|
|
|
|
|
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
|
|
|
|
|
|
info = psb_err_missing_override_method_
|
|
|
|
|
call psb_errpush(info,name)
|
|
|
|
|
goto 9999
|
|
|
|
|
|
|
|
|
|
call psb_erractionrestore(err_act)
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
9999 continue
|
|
|
|
|
call psb_erractionrestore(err_act)
|
|
|
|
|
if (err_act == psb_act_abort_) then
|
|
|
|
|
call psb_error()
|
|
|
|
|
return
|
|
|
|
|
end if
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
end subroutine d_base_solver_apply_vect
|
|
|
|
|
|
|
|
|
|
subroutine d_base_solver_bld(a,desc_a,sv,upd,info,b,mold)
|
|
|
|
|
|
|
|
|
|
use psb_base_mod
|
|
|
|
|