submodule (psb_c_oacc_ell_mat_mod) psb_c_oacc_ell_allocate_mnnz_impl use psb_base_mod contains module subroutine psb_c_oacc_ell_allocate_mnnz(m, n, a, nz) implicit none integer(psb_ipk_), intent(in) :: m, n class(psb_c_oacc_ell_sparse_mat), intent(inout) :: a integer(psb_ipk_), intent(in), optional :: nz integer(psb_ipk_) :: info integer(psb_ipk_) :: err_act, nz_ character(len=20) :: name='allocate_mnnz' logical, parameter :: debug=.false. call psb_erractionsave(err_act) info = psb_success_ if (present(nz)) then nz_ = nz else nz_ = 10 end if call a%psb_c_ell_sparse_mat%allocate(m, n, nz_) call a%sync_dev_space() call a%set_host() if (info /= 0) goto 9999 call psb_erractionrestore(err_act) return 9999 call psb_error_handler(err_act) return end subroutine psb_c_oacc_ell_allocate_mnnz end submodule psb_c_oacc_ell_allocate_mnnz_impl