You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
3.4 KiB
Fortran
123 lines
3.4 KiB
Fortran
16 years ago
|
|
||
|
module psbn_d_base_mat_mod
|
||
|
|
||
|
use psbn_base_mat_mod
|
||
|
type, extends(psbn_base_sparse_mat) :: psbn_d_base_sparse_mat
|
||
|
contains
|
||
|
procedure, pass(a) :: d_base_csmv
|
||
|
procedure, pass(a) :: d_base_csmm
|
||
|
generic, public :: psbn_csmm => d_base_csmm, d_base_csmv
|
||
|
procedure, pass(a) :: d_base_cssv
|
||
|
procedure, pass(a) :: d_base_cssm
|
||
|
generic, public :: psbn_cssm => d_base_cssm, d_base_cssv
|
||
|
|
||
|
end type psbn_d_base_sparse_mat
|
||
|
|
||
|
contains
|
||
|
|
||
|
subroutine d_base_csmm(alpha,a,x,beta,y,info,trans)
|
||
|
use psb_error_mod
|
||
|
class(psbn_d_base_sparse_mat), intent(in) :: a
|
||
|
real(kind(1.d0)), intent(in) :: alpha, beta, x(:,:)
|
||
|
real(kind(1.d0)), intent(inout) :: y(:,:)
|
||
|
integer, intent(out) :: info
|
||
|
character, optional, intent(in) :: trans
|
||
|
|
||
|
Integer :: err_act
|
||
|
character(len=20) :: name='d_base_csmm'
|
||
|
logical, parameter :: debug=.false.
|
||
|
|
||
|
call psb_erractionsave(err_act)
|
||
|
! This is the base version. If we get here
|
||
|
! it means the derived class is incomplete,
|
||
|
! so we throw an error.
|
||
|
call psb_errpush(700,name)
|
||
|
|
||
|
if (err_act /= psb_act_ret_) then
|
||
|
call psb_error()
|
||
|
end if
|
||
|
return
|
||
|
|
||
|
end subroutine d_base_csmm
|
||
|
|
||
|
subroutine d_base_csmv(alpha,a,x,beta,y,info,trans)
|
||
|
use psb_error_mod
|
||
|
class(psbn_d_base_sparse_mat), intent(in) :: a
|
||
|
real(kind(1.d0)), intent(in) :: alpha, beta, x(:)
|
||
|
real(kind(1.d0)), intent(inout) :: y(:)
|
||
|
integer, intent(out) :: info
|
||
|
character, optional, intent(in) :: trans
|
||
|
|
||
|
Integer :: err_act
|
||
|
character(len=20) :: name='d_base_csmv'
|
||
|
logical, parameter :: debug=.false.
|
||
|
|
||
|
call psb_erractionsave(err_act)
|
||
|
! This is the base version. If we get here
|
||
|
! it means the derived class is incomplete,
|
||
|
! so we throw an error.
|
||
|
call psb_errpush(700,name)
|
||
|
|
||
|
if (err_act /= psb_act_ret_) then
|
||
|
call psb_error()
|
||
|
end if
|
||
|
return
|
||
|
|
||
|
|
||
|
end subroutine d_base_csmv
|
||
|
|
||
|
subroutine d_base_cssm(alpha,a,x,beta,y,info,trans)
|
||
|
use psb_error_mod
|
||
|
class(psbn_d_base_sparse_mat), intent(in) :: a
|
||
|
real(kind(1.d0)), intent(in) :: alpha, beta, x(:,:)
|
||
|
real(kind(1.d0)), intent(inout) :: y(:,:)
|
||
|
integer, intent(out) :: info
|
||
|
character, optional, intent(in) :: trans
|
||
|
|
||
|
Integer :: err_act
|
||
|
character(len=20) :: name='d_base_cssm'
|
||
|
logical, parameter :: debug=.false.
|
||
|
|
||
|
call psb_erractionsave(err_act)
|
||
|
info = 700
|
||
|
! This is the base version. If we get here
|
||
|
! it means the derived class is incomplete,
|
||
|
! so we throw an error.
|
||
|
call psb_errpush(700,name)
|
||
|
|
||
|
if (err_act /= psb_act_ret_) then
|
||
|
call psb_error()
|
||
|
end if
|
||
|
return
|
||
|
|
||
|
end subroutine d_base_cssm
|
||
|
|
||
|
subroutine d_base_cssv(alpha,a,x,beta,y,info,trans)
|
||
|
use psb_error_mod
|
||
|
class(psbn_d_base_sparse_mat), intent(in) :: a
|
||
|
real(kind(1.d0)), intent(in) :: alpha, beta, x(:)
|
||
|
real(kind(1.d0)), intent(inout) :: y(:)
|
||
|
integer, intent(out) :: info
|
||
|
character, optional, intent(in) :: trans
|
||
|
|
||
|
Integer :: err_act
|
||
|
character(len=20) :: name='d_base_cssv'
|
||
|
logical, parameter :: debug=.false.
|
||
|
|
||
|
call psb_erractionsave(err_act)
|
||
|
info = 700
|
||
|
! This is the base version. If we get here
|
||
|
! it means the derived class is incomplete,
|
||
|
! so we throw an error.
|
||
|
call psb_errpush(700,name)
|
||
|
|
||
|
if (err_act /= psb_act_ret_) then
|
||
|
call psb_error()
|
||
|
end if
|
||
|
return
|
||
|
|
||
|
|
||
|
end subroutine d_base_cssv
|
||
|
|
||
|
end module psbn_d_base_mat_mod
|