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.
30 lines
823 B
Fortran
30 lines
823 B
Fortran
submodule (psb_s_oacc_hll_mat_mod) psb_s_oacc_hll_reallocate_nz_impl
|
|
use psb_base_mod
|
|
contains
|
|
module subroutine psb_s_oacc_hll_reallocate_nz(nz, a)
|
|
implicit none
|
|
integer(psb_ipk_), intent(in) :: nz
|
|
class(psb_s_oacc_hll_sparse_mat), intent(inout) :: a
|
|
integer(psb_ipk_) :: info
|
|
integer(psb_ipk_) :: err_act
|
|
character(len=20) :: name='s_oacc_hll_reallocate_nz'
|
|
logical, parameter :: debug=.false.
|
|
integer(psb_ipk_) :: hksz, nhacks
|
|
|
|
call psb_erractionsave(err_act)
|
|
info = psb_success_
|
|
|
|
call a%psb_s_hll_sparse_mat%reallocate(nz)
|
|
|
|
call a%set_dev()
|
|
if (info /= 0) goto 9999
|
|
|
|
call psb_erractionrestore(err_act)
|
|
return
|
|
|
|
9999 call psb_error_handler(err_act)
|
|
return
|
|
|
|
end subroutine psb_s_oacc_hll_reallocate_nz
|
|
end submodule psb_s_oacc_hll_reallocate_nz_impl
|