mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-07 07:04:57 +00:00
psblas3:
base/comm/psb_cgather.f90 base/comm/psb_chalo.f90 base/comm/psb_covrl.f90 base/comm/psb_cscatter.F90 base/comm/psb_cspgather.F90 base/comm/psb_dgather.f90 base/comm/psb_dhalo.f90 base/comm/psb_dovrl.f90 base/comm/psb_dscatter.F90 base/comm/psb_dspgather.F90 base/comm/psb_igather.f90 base/comm/psb_ihalo.f90 base/comm/psb_iovrl.f90 base/comm/psb_iscatter.F90 base/comm/psb_sgather.f90 base/comm/psb_shalo.f90 base/comm/psb_sovrl.f90 base/comm/psb_sscatter.F90 base/comm/psb_sspgather.F90 base/comm/psb_zgather.f90 base/comm/psb_zhalo.f90 base/comm/psb_zovrl.f90 base/comm/psb_zscatter.F90 base/comm/psb_zspgather.F90 base/internals/psb_indx_map_fnd_owner.F90 base/internals/psi_bld_tmphalo.f90 base/internals/psi_bld_tmpovrl.f90 base/internals/psi_compute_size.f90 base/internals/psi_crea_bnd_elem.f90 base/internals/psi_crea_index.f90 base/internals/psi_crea_ovr_elem.f90 base/internals/psi_cswapdata.F90 base/internals/psi_cswaptran.F90 base/internals/psi_desc_impl.f90 base/internals/psi_desc_index.F90 base/internals/psi_dl_check.f90 base/internals/psi_dswapdata.F90 base/internals/psi_dswaptran.F90 base/internals/psi_exist_ovr_elem.f base/internals/psi_extrct_dl.F90 base/internals/psi_fnd_owner.F90 base/internals/psi_idx_cnv.f90 base/internals/psi_idx_ins_cnv.f90 base/internals/psi_iswapdata.F90 base/internals/psi_iswaptran.F90 base/internals/psi_ldsc_pre_halo.f90 base/internals/psi_list_search.f base/internals/psi_ovrl_restr.f90 base/internals/psi_ovrl_save.f90 base/internals/psi_ovrl_upd.f90 base/internals/psi_sort_dl.f90 base/internals/psi_sswapdata.F90 base/internals/psi_sswaptran.F90 base/internals/psi_zswapdata.F90 base/internals/psi_zswaptran.F90 base/internals/srtlist.f base/modules/Makefile base/modules/error.f90 base/modules/parts.f90 base/modules/psb_base_linmap_mod.f90 base/modules/psb_base_mat_mod.f90 base/modules/psb_base_tools_mod.f90 base/modules/psb_c_base_mat_mod.f90 base/modules/psb_c_base_vect_mod.f90 base/modules/psb_c_comm_mod.f90 base/modules/psb_c_csc_mat_mod.f90 base/modules/psb_c_csr_mat_mod.f90 base/modules/psb_c_linmap_mod.f90 base/modules/psb_c_mat_mod.f90 base/modules/psb_c_psblas_mod.f90 base/modules/psb_c_tools_mod.f90 base/modules/psb_c_vect_mod.f90 base/modules/psb_check_mod.f90 base/modules/psb_const_mod.F90 base/modules/psb_d_base_mat_mod.f90 base/modules/psb_d_base_vect_mod.f90 base/modules/psb_d_comm_mod.f90 base/modules/psb_d_csc_mat_mod.f90 base/modules/psb_d_csr_mat_mod.f90 base/modules/psb_d_linmap_mod.f90 base/modules/psb_d_mat_mod.f90 base/modules/psb_d_psblas_mod.f90 base/modules/psb_d_tools_mod.f90 base/modules/psb_d_vect_mod.f90 base/modules/psb_desc_const_mod.f90 base/modules/psb_desc_type.f90 base/modules/psb_error_impl.F90 base/modules/psb_error_mod.F90 base/modules/psb_gen_block_map_mod.f90 base/modules/psb_glist_map_mod.f90 base/modules/psb_hash_map_mod.f90 base/modules/psb_hash_mod.f90 base/modules/psb_i_comm_mod.f90 base/modules/psb_indx_map_mod.f90 base/modules/psb_ip_reord_mod.f90 base/modules/psb_list_map_mod.f90 base/modules/psb_realloc_mod.F90 base/modules/psb_repl_map_mod.f90 base/modules/psb_s_base_mat_mod.f90 base/modules/psb_s_base_vect_mod.f90 base/modules/psb_s_comm_mod.f90 base/modules/psb_s_csc_mat_mod.f90 base/modules/psb_s_csr_mat_mod.f90 base/modules/psb_s_linmap_mod.f90 base/modules/psb_s_mat_mod.f90 base/modules/psb_s_psblas_mod.f90 base/modules/psb_s_tools_mod.f90 base/modules/psb_s_vect_mod.f90 base/modules/psb_serial_mod.f90 base/modules/psb_sort_mod.f90 base/modules/psb_string_mod.f90 base/modules/psb_z_base_mat_mod.f90 base/modules/psb_z_base_vect_mod.f90 base/modules/psb_z_comm_mod.f90 base/modules/psb_z_csc_mat_mod.f90 base/modules/psb_z_csr_mat_mod.f90 base/modules/psb_z_linmap_mod.f90 base/modules/psb_z_mat_mod.f90 base/modules/psb_z_psblas_mod.f90 base/modules/psb_z_tools_mod.f90 base/modules/psb_z_vect_mod.f90 base/modules/psi_bcast_mod.F90 base/modules/psi_c_mod.f90 base/modules/psi_comm_buffers_mod.F90 base/modules/psi_d_mod.f90 base/modules/psi_i_mod.f90 base/modules/psi_p2p_mod.F90 base/modules/psi_penv_mod.F90 base/modules/psi_reduce_mod.F90 base/modules/psi_s_mod.f90 base/modules/psi_serial_mod.f90 base/modules/psi_z_mod.f90 base/psblas/psb_camax.f90 base/psblas/psb_casum.f90 base/psblas/psb_caxpby.f90 base/psblas/psb_cdot.f90 base/psblas/psb_cnrm2.f90 base/psblas/psb_cnrmi.f90 base/psblas/psb_cspmm.f90 base/psblas/psb_cspsm.f90 base/psblas/psb_damax.f90 base/psblas/psb_dasum.f90 base/psblas/psb_daxpby.f90 base/psblas/psb_ddot.f90 base/psblas/psb_dnrm2.f90 base/psblas/psb_dnrmi.f90 base/psblas/psb_dspmm.f90 base/psblas/psb_dspnrm1.f90 base/psblas/psb_dspsm.f90 base/psblas/psb_samax.f90 base/psblas/psb_sasum.f90 base/psblas/psb_saxpby.f90 base/psblas/psb_sdot.f90 base/psblas/psb_snrm2.f90 base/psblas/psb_snrmi.f90 base/psblas/psb_sspmm.f90 base/psblas/psb_sspsm.f90 base/psblas/psb_sxdot.f90 base/psblas/psb_zamax.f90 base/psblas/psb_zasum.f90 base/psblas/psb_zaxpby.f90 base/psblas/psb_zdot.f90 base/psblas/psb_znrm2.f90 base/psblas/psb_znrmi.f90 base/psblas/psb_zspmm.f90 base/psblas/psb_zspsm.f90 base/serial/aux/calsr.f90 base/serial/aux/calsrx.f90 base/serial/aux/camsort_dw.f90 base/serial/aux/camsort_up.f90 base/serial/aux/camsr.f90 base/serial/aux/camsrx.f90 base/serial/aux/casr.f90 base/serial/aux/casrx.f90 base/serial/aux/clsr.f90 base/serial/aux/clsrx.f90 base/serial/aux/dasr.f90 base/serial/aux/dasrx.f90 base/serial/aux/dmsort_dw.f90 base/serial/aux/dmsort_up.f90 base/serial/aux/dmsr.f90 base/serial/aux/dmsrx.f90 base/serial/aux/dsr.f90 base/serial/aux/dsrx.f90 base/serial/aux/iasr.f90 base/serial/aux/iasrx.f90 base/serial/aux/ibsrch.f base/serial/aux/imsr.f90 base/serial/aux/imsru.f90 base/serial/aux/imsrx.f90 base/serial/aux/isaperm.f base/serial/aux/isr.f90 base/serial/aux/isrx.f90 base/serial/aux/issrch.f base/serial/aux/msort_dw.f90 base/serial/aux/msort_up.f90 base/serial/aux/sasr.f90 base/serial/aux/sasrx.f90 base/serial/aux/smsort_dw.f90 base/serial/aux/smsort_up.f90 base/serial/aux/smsr.f90 base/serial/aux/smsrx.f90 base/serial/aux/ssr.f90 base/serial/aux/ssrx.f90 base/serial/aux/zalsr.f90 base/serial/aux/zalsrx.f90 base/serial/aux/zamsort_dw.f90 base/serial/aux/zamsort_up.f90 base/serial/aux/zamsr.f90 base/serial/aux/zamsrx.f90 base/serial/aux/zasr.f90 base/serial/aux/zasrx.f90 base/serial/aux/zlsr.f90 base/serial/aux/zlsrx.f90 base/serial/f77/caxpby.f base/serial/f77/daxpby.f base/serial/f77/saxpby.f base/serial/f77/smmp.f base/serial/f77/zaxpby.f base/serial/impl/psb_base_mat_impl.f90 base/serial/impl/psb_c_base_mat_impl.f90 base/serial/impl/psb_c_coo_impl.f90 base/serial/impl/psb_c_csc_impl.f90 base/serial/impl/psb_c_csr_impl.f90 base/serial/impl/psb_c_mat_impl.F90 base/serial/impl/psb_d_base_mat_impl.f90 base/serial/impl/psb_d_coo_impl.f90 base/serial/impl/psb_d_csc_impl.f90 base/serial/impl/psb_d_csr_impl.f90 base/serial/impl/psb_d_mat_impl.F90 base/serial/impl/psb_s_base_mat_impl.f90 base/serial/impl/psb_s_coo_impl.f90 base/serial/impl/psb_s_csc_impl.f90 base/serial/impl/psb_s_csr_impl.f90 base/serial/impl/psb_s_mat_impl.F90 base/serial/impl/psb_z_base_mat_impl.f90 base/serial/impl/psb_z_coo_impl.f90 base/serial/impl/psb_z_csc_impl.f90 base/serial/impl/psb_z_csr_impl.f90 base/serial/impl/psb_z_mat_impl.F90 base/serial/psb_aspxpby.f90 base/serial/psb_cgelp.f90 base/serial/psb_cgeprt.f90 base/serial/psb_cnumbmm.f90 base/serial/psb_crwextd.f90 base/serial/psb_csymbmm.f90 base/serial/psb_dgelp.f90 base/serial/psb_dgeprt.f90 base/serial/psb_dnumbmm.f90 base/serial/psb_drwextd.f90 base/serial/psb_dsymbmm.f90 base/serial/psb_sgelp.f90 base/serial/psb_sgeprt.f90 base/serial/psb_snumbmm.f90 base/serial/psb_sort_impl.f90 base/serial/psb_spdot_srtd.f90 base/serial/psb_spge_dot.f90 base/serial/psb_srwextd.f90 base/serial/psb_ssymbmm.f90 base/serial/psb_zgelp.f90 base/serial/psb_zgeprt.f90 base/serial/psb_znumbmm.f90 base/serial/psb_zrwextd.f90 base/serial/psb_zsymbmm.f90 base/serial/psi_serial_impl.f90 base/tools/psb_c_map.f90 base/tools/psb_callc.f90 base/tools/psb_casb.f90 base/tools/psb_ccdbldext.F90 base/tools/psb_cd_inloc.f90 base/tools/psb_cd_lstext.f90 base/tools/psb_cd_reinit.f90 base/tools/psb_cd_set_bld.f90 base/tools/psb_cd_switch_ovl_indxmap.f90 base/tools/psb_cdall.f90 base/tools/psb_cdals.f90 base/tools/psb_cdalv.f90 base/tools/psb_cdcpy.F90 base/tools/psb_cdins.f90 base/tools/psb_cdprt.f90 base/tools/psb_cdren.f90 base/tools/psb_cdrep.f90 base/tools/psb_cfree.f90 base/tools/psb_cins.f90 base/tools/psb_cspalloc.f90 base/tools/psb_cspasb.f90 base/tools/psb_cspfree.f90 base/tools/psb_csphalo.F90 base/tools/psb_cspins.f90 base/tools/psb_csprn.f90 base/tools/psb_d_map.f90 base/tools/psb_dallc.f90 base/tools/psb_dasb.f90 base/tools/psb_dcdbldext.F90 base/tools/psb_dfree.f90 base/tools/psb_dins.f90 base/tools/psb_dspalloc.f90 base/tools/psb_dspasb.f90 base/tools/psb_dspfree.f90 base/tools/psb_dsphalo.F90 base/tools/psb_dspins.f90 base/tools/psb_dsprn.f90 base/tools/psb_get_overlap.f90 base/tools/psb_glob_to_loc.f90 base/tools/psb_ialloc.f90 base/tools/psb_iasb.f90 base/tools/psb_icdasb.F90 base/tools/psb_ifree.f90 base/tools/psb_iins.f90 base/tools/psb_loc_to_glob.f90 base/tools/psb_s_map.f90 base/tools/psb_sallc.f90 base/tools/psb_sasb.f90 base/tools/psb_scdbldext.F90 base/tools/psb_sfree.f90 base/tools/psb_sins.f90 base/tools/psb_sspalloc.f90 base/tools/psb_sspasb.f90 base/tools/psb_sspfree.f90 base/tools/psb_ssphalo.F90 base/tools/psb_sspins.f90 base/tools/psb_ssprn.f90 base/tools/psb_z_map.f90 base/tools/psb_zallc.f90 base/tools/psb_zasb.f90 base/tools/psb_zcdbldext.F90 base/tools/psb_zfree.f90 base/tools/psb_zins.f90 base/tools/psb_zspalloc.f90 base/tools/psb_zspasb.f90 base/tools/psb_zspfree.f90 base/tools/psb_zsphalo.F90 base/tools/psb_zspins.f90 base/tools/psb_zsprn.f90 krylov/psb_base_inner_krylov_mod.f90 krylov/psb_c_inner_krylov_mod.f90 krylov/psb_cbicg.f90 krylov/psb_ccg.f90 krylov/psb_ccgs.f90 krylov/psb_ccgstab.f90 krylov/psb_ccgstabl.f90 krylov/psb_ckrylov.f90 krylov/psb_crgmres.f90 krylov/psb_d_inner_krylov_mod.f90 krylov/psb_dbicg.f90 krylov/psb_dcg.F90 krylov/psb_dcgs.f90 krylov/psb_dcgstab.F90 krylov/psb_dcgstabl.f90 krylov/psb_dkrylov.f90 krylov/psb_drgmres.f90 krylov/psb_krylov_mod.f90 krylov/psb_s_inner_krylov_mod.f90 krylov/psb_sbicg.f90 krylov/psb_scg.F90 krylov/psb_scgs.f90 krylov/psb_scgstab.F90 krylov/psb_scgstabl.f90 krylov/psb_skrylov.f90 krylov/psb_srgmres.f90 krylov/psb_z_inner_krylov_mod.f90 krylov/psb_zbicg.f90 krylov/psb_zcg.F90 krylov/psb_zcgs.f90 krylov/psb_zcgstab.f90 krylov/psb_zcgstabl.f90 krylov/psb_zkrylov.f90 krylov/psb_zrgmres.f90 opt/psb_d_ell_impl.f90 opt/psb_d_ell_mat_mod.f90 prec/Makefile prec/impl/psb_c_bjacprec_impl.f90 prec/impl/psb_c_diagprec_impl.f90 prec/impl/psb_c_nullprec_impl.f90 prec/impl/psb_c_prec_type_impl.f90 prec/impl/psb_cilu_fct.f90 prec/impl/psb_cprecbld.f90 prec/impl/psb_cprecinit.f90 prec/impl/psb_cprecset.f90 prec/impl/psb_d_bjacprec_impl.f90 prec/impl/psb_d_diagprec_impl.f90 prec/impl/psb_d_nullprec_impl.f90 prec/impl/psb_d_prec_type_impl.f90 prec/impl/psb_dilu_fct.f90 prec/impl/psb_dprecbld.f90 prec/impl/psb_dprecinit.f90 prec/impl/psb_dprecset.f90 prec/impl/psb_s_bjacprec_impl.f90 prec/impl/psb_s_diagprec_impl.f90 prec/impl/psb_s_nullprec_impl.f90 prec/impl/psb_s_prec_type_impl.f90 prec/impl/psb_silu_fct.f90 prec/impl/psb_sprecbld.f90 prec/impl/psb_sprecinit.f90 prec/impl/psb_sprecset.f90 prec/impl/psb_z_bjacprec_impl.f90 prec/impl/psb_z_diagprec_impl.f90 prec/impl/psb_z_nullprec_impl.f90 prec/impl/psb_z_prec_type_impl.f90 prec/impl/psb_zilu_fct.f90 prec/impl/psb_zprecbld.f90 prec/impl/psb_zprecinit.f90 prec/impl/psb_zprecset.f90 prec/psb_c_base_prec_mod.f90 prec/psb_c_bjacprec.f90 prec/psb_c_diagprec.f90 prec/psb_c_nullprec.f90 prec/psb_c_prec_mod.f90 prec/psb_c_prec_type.f90 prec/psb_d_base_prec_mod.f90 prec/psb_d_bjacprec.f90 prec/psb_d_diagprec.f90 prec/psb_d_nullprec.f90 prec/psb_d_prec_mod.f90 prec/psb_d_prec_type.f90 prec/psb_prec_const_mod.f90 prec/psb_s_base_prec_mod.f90 prec/psb_s_bjacprec.f90 prec/psb_s_diagprec.f90 prec/psb_s_nullprec.f90 prec/psb_s_prec_mod.f90 prec/psb_s_prec_type.f90 prec/psb_z_base_prec_mod.f90 prec/psb_z_bjacprec.f90 prec/psb_z_diagprec.f90 prec/psb_z_nullprec.f90 prec/psb_z_prec_mod.f90 prec/psb_z_prec_type.f90 test/fileread/cf_sample.f90 test/fileread/df_sample.f90 test/fileread/getp.f90 test/fileread/sf_sample.f90 test/fileread/zf_sample.f90 test/kernel/d_file_spmv.f90 test/kernel/pdgenspmv.f90 test/kernel/s_file_spmv.f90 test/newfmt/ppde.F90 test/newfmt/spde.f90 test/pargen/ppde.f90 test/pargen/spde.f90 test/serial/d_coo_matgen.f90 test/serial/d_matgen.F90 test/serial/psb_d_cxx_impl.f90 test/serial/psb_d_cxx_mat_mod.f90 test/serial/psb_d_cyy_impl.f90 test/serial/psb_d_cyy_mat_mod.f90 test/torture/psb_c_mvsv_tester.f90 test/torture/psb_d_mvsv_tester.f90 test/torture/psb_s_mvsv_tester.f90 test/torture/psb_z_mvsv_tester.f90 test/torture/psbtf.f90 test/util/dhb2mm.f90 test/util/dmm2hb.f90 test/util/zhb2mm.f90 test/util/zmm2hb.f90 util/psb_blockpart_mod.f90 util/psb_c_hbio_impl.f90 util/psb_c_mat_dist_impl.f90 util/psb_c_mmio_impl.f90 util/psb_c_renum_impl.F90 util/psb_d_hbio_impl.f90 util/psb_d_mat_dist_impl.f90 util/psb_d_mmio_impl.f90 util/psb_d_renum_impl.F90 util/psb_gps_mod.f90 util/psb_hbio_mod.f90 util/psb_mat_dist_impl.f90 util/psb_mat_dist_mod.f90 util/psb_metispart_mod.F90 util/psb_mmio_mod.f90 util/psb_renum_mod.f90 util/psb_s_hbio_impl.f90 util/psb_s_mat_dist_impl.f90 util/psb_s_mmio_impl.f90 util/psb_s_renum_impl.F90 util/psb_z_hbio_impl.f90 util/psb_z_mat_dist_impl.f90 util/psb_z_mmio_impl.f90 util/psb_z_renum_impl.F90 Introduced use of psb_ipk_. Modified hash_mod: should now work even with psb_ipk_= 8 bytes. Still need to fix the parallel environment for long-integers.
This commit is contained in:
@@ -55,10 +55,10 @@ program cf_sample
|
||||
! communications data structure
|
||||
type(psb_desc_type):: desc_a
|
||||
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver paramters
|
||||
integer :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
integer(psb_ipk_) :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
& methd, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_spk_) :: err, eps
|
||||
@@ -66,16 +66,16 @@ program cf_sample
|
||||
character(len=5) :: afmt
|
||||
character(len=20) :: name
|
||||
character(len=2) :: filefmt
|
||||
integer, parameter :: iunit=12
|
||||
integer :: iparm(20)
|
||||
integer(psb_ipk_), parameter :: iunit=12
|
||||
integer(psb_ipk_) :: iparm(20)
|
||||
|
||||
! other variables
|
||||
integer :: i,info,j,m_problem
|
||||
integer :: internal, m,ii,nnzero
|
||||
integer(psb_ipk_) :: i,info,j,m_problem
|
||||
integer(psb_ipk_) :: internal, m,ii,nnzero
|
||||
real(psb_dpk_) :: t1, t2, tprec
|
||||
real(psb_spk_) :: r_amax, b_amax, scale,resmx,resmxp
|
||||
integer :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer, allocatable :: ivg(:), ipv(:), perm(:)
|
||||
integer(psb_ipk_) :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer(psb_ipk_), allocatable :: ivg(:), ipv(:), perm(:)
|
||||
character(len=40) :: fname, fnout
|
||||
|
||||
|
||||
|
||||
@@ -56,10 +56,10 @@ program df_sample
|
||||
! communications data structure
|
||||
type(psb_desc_type):: desc_a
|
||||
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver paramters
|
||||
integer :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
integer(psb_ipk_) :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
& methd, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_dpk_) :: err, eps,cond
|
||||
@@ -67,16 +67,16 @@ program df_sample
|
||||
character(len=5) :: afmt
|
||||
character(len=20) :: name
|
||||
character(len=2) :: filefmt
|
||||
integer, parameter :: iunit=12
|
||||
integer :: iparm(20)
|
||||
integer(psb_ipk_), parameter :: iunit=12
|
||||
integer(psb_ipk_) :: iparm(20)
|
||||
|
||||
! other variables
|
||||
integer :: i,info,j,m_problem
|
||||
integer :: internal, m,ii,nnzero
|
||||
integer(psb_ipk_) :: i,info,j,m_problem
|
||||
integer(psb_ipk_) :: internal, m,ii,nnzero
|
||||
real(psb_dpk_) :: t1, t2, tprec, r_amax, b_amax,&
|
||||
&scale,resmx,resmxp
|
||||
integer :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer, allocatable :: ivg(:), ipv(:), perm(:)
|
||||
integer(psb_ipk_) :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer(psb_ipk_), allocatable :: ivg(:), ipv(:), perm(:)
|
||||
character(len=40) :: fname, fnout
|
||||
|
||||
|
||||
@@ -94,6 +94,7 @@ program df_sample
|
||||
if(psb_get_errstatus() /= 0) goto 9999
|
||||
info=psb_success_
|
||||
call psb_set_errverbosity(2)
|
||||
call psb_cd_set_large_threshold(2)
|
||||
!
|
||||
! Hello world
|
||||
!
|
||||
|
||||
@@ -41,15 +41,15 @@ contains
|
||||
subroutine get_dparms(ictxt,mtrx_file,rhs_file,filefmt,kmethd,ptype,ipart,&
|
||||
& afmt,istopc,itmax,itrace,irst,eps)
|
||||
use psb_base_mod
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=2) :: filefmt
|
||||
character(len=40) :: kmethd, mtrx_file, rhs_file, ptype
|
||||
integer :: iret, istopc,itmax,itrace,ipart,irst
|
||||
integer(psb_ipk_) :: iret, istopc,itmax,itrace,ipart,irst
|
||||
character(len=40) :: charbuf
|
||||
real(psb_dpk_) :: eps
|
||||
character :: afmt*5
|
||||
integer :: np, iam
|
||||
integer :: inparms(40), ip
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: inparms(40), ip
|
||||
|
||||
call psb_info(ictxt,iam,np)
|
||||
if (iam == 0) then
|
||||
@@ -142,15 +142,15 @@ contains
|
||||
subroutine get_sparms(ictxt,mtrx_file,rhs_file,filefmt,kmethd,ptype,ipart,&
|
||||
& afmt,istopc,itmax,itrace,irst,eps)
|
||||
use psb_base_mod
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=2) :: filefmt
|
||||
character(len=40) :: kmethd, mtrx_file, rhs_file, ptype
|
||||
integer :: iret, istopc,itmax,itrace,ipart,irst
|
||||
integer(psb_ipk_) :: iret, istopc,itmax,itrace,ipart,irst
|
||||
character(len=40) :: charbuf
|
||||
real(psb_spk_) :: eps
|
||||
character :: afmt*5
|
||||
integer :: np, iam
|
||||
integer :: inparms(40), ip
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: inparms(40), ip
|
||||
|
||||
call psb_info(ictxt,iam,np)
|
||||
if (iam == 0) then
|
||||
|
||||
@@ -56,10 +56,10 @@ program sf_sample
|
||||
! communications data structure
|
||||
type(psb_desc_type):: desc_a
|
||||
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver paramters
|
||||
integer :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
integer(psb_ipk_) :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
& methd, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_spk_) :: err, eps,cond
|
||||
@@ -67,16 +67,16 @@ program sf_sample
|
||||
character(len=5) :: afmt
|
||||
character(len=20) :: name
|
||||
character(len=2) :: filefmt
|
||||
integer, parameter :: iunit=12
|
||||
integer :: iparm(20)
|
||||
integer(psb_ipk_), parameter :: iunit=12
|
||||
integer(psb_ipk_) :: iparm(20)
|
||||
|
||||
! other variables
|
||||
integer :: i,info,j,m_problem
|
||||
integer :: internal, m,ii,nnzero
|
||||
integer(psb_ipk_) :: i,info,j,m_problem
|
||||
integer(psb_ipk_) :: internal, m,ii,nnzero
|
||||
real(psb_dpk_) :: t1, t2, tprec
|
||||
real(psb_spk_) :: r_amax, b_amax, scale,resmx,resmxp
|
||||
integer :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer, allocatable :: ivg(:), ipv(:), perm(:)
|
||||
integer(psb_ipk_) :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer(psb_ipk_), allocatable :: ivg(:), ipv(:), perm(:)
|
||||
character(len=40) :: fname, fnout
|
||||
|
||||
|
||||
|
||||
@@ -55,10 +55,10 @@ program zf_sample
|
||||
! communications data structure
|
||||
type(psb_desc_type):: desc_a
|
||||
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver paramters
|
||||
integer :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
integer(psb_ipk_) :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
& methd, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_dpk_) :: err, eps
|
||||
@@ -66,16 +66,16 @@ program zf_sample
|
||||
character(len=5) :: afmt
|
||||
character(len=20) :: name
|
||||
character(len=2) :: filefmt
|
||||
integer, parameter :: iunit=12
|
||||
integer :: iparm(20)
|
||||
integer(psb_ipk_), parameter :: iunit=12
|
||||
integer(psb_ipk_) :: iparm(20)
|
||||
|
||||
! other variables
|
||||
integer :: i,info,j,m_problem
|
||||
integer :: internal, m,ii,nnzero
|
||||
integer(psb_ipk_) :: i,info,j,m_problem
|
||||
integer(psb_ipk_) :: internal, m,ii,nnzero
|
||||
real(psb_dpk_) :: t1, t2, tprec
|
||||
real(psb_dpk_) :: r_amax, b_amax, scale,resmx,resmxp
|
||||
integer :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer, allocatable :: ivg(:), ipv(:), perm(:)
|
||||
integer(psb_ipk_) :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer(psb_ipk_), allocatable :: ivg(:), ipv(:), perm(:)
|
||||
character(len=40) :: fname, fnout
|
||||
|
||||
|
||||
|
||||
@@ -50,10 +50,10 @@ program d_file_spmv
|
||||
! communications data structure
|
||||
type(psb_desc_type):: desc_a
|
||||
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver paramters
|
||||
integer :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
integer(psb_ipk_) :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
& methd, istopc, irst, nr
|
||||
integer(psb_long_int_k_) :: amatsize, descsize, annz, nbytes
|
||||
real(psb_dpk_) :: err, eps,cond
|
||||
@@ -61,18 +61,18 @@ program d_file_spmv
|
||||
character(len=5) :: afmt
|
||||
character(len=20) :: name
|
||||
character(len=2) :: filefmt
|
||||
integer, parameter :: iunit=12
|
||||
integer, parameter :: times=10
|
||||
integer :: iparm(20)
|
||||
integer(psb_ipk_), parameter :: iunit=12
|
||||
integer(psb_ipk_), parameter :: times=10
|
||||
integer(psb_ipk_) :: iparm(20)
|
||||
|
||||
! other variables
|
||||
integer :: i,info,j,m_problem
|
||||
integer :: internal, m,ii,nnzero
|
||||
integer(psb_ipk_) :: i,info,j,m_problem
|
||||
integer(psb_ipk_) :: internal, m,ii,nnzero
|
||||
real(psb_dpk_) :: t1, t2, r_amax, b_amax,&
|
||||
&scale,resmx,resmxp, flops, bdwdth
|
||||
real(psb_dpk_) :: tt1, tt2, tflops
|
||||
integer :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer, allocatable :: ivg(:), ipv(:)
|
||||
integer(psb_ipk_) :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer(psb_ipk_), allocatable :: ivg(:), ipv(:)
|
||||
|
||||
|
||||
call psb_init(ictxt)
|
||||
|
||||
+19
-19
@@ -69,7 +69,7 @@ program pdgen
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_dpk_), parameter :: one = 1.d0
|
||||
@@ -83,16 +83,16 @@ program pdgen
|
||||
type(psb_d_vect_type) :: xxv,bv, vtst
|
||||
real(psb_dpk_), allocatable :: tst(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst, nr
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst, nr
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize, d2size, annz, nbytes
|
||||
real(psb_dpk_) :: err, eps
|
||||
integer, parameter :: times=10
|
||||
integer(psb_ipk_), parameter :: times=10
|
||||
|
||||
! other variables
|
||||
integer :: info, i
|
||||
integer(psb_ipk_) :: info, i
|
||||
character(len=20) :: name,ch_err
|
||||
character(len=40) :: fname
|
||||
|
||||
@@ -257,11 +257,11 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,afmt,idim)
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=*) :: afmt
|
||||
integer :: idim
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -286,7 +286,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -327,22 +327,22 @@ contains
|
||||
use psb_base_mod
|
||||
use psb_mat_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
type(psb_d_vect_type) :: xxv,bv
|
||||
type(psb_desc_type) :: desc_a
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_dspmat_type) :: a
|
||||
type(psb_d_csc_sparse_mat) :: acsc
|
||||
type(psb_d_coo_sparse_mat) :: acoo
|
||||
type(psb_d_csr_sparse_mat) :: acsr
|
||||
real(psb_dpk_) :: zt(nb),x,y,z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: ix,iy,iz,ia,indx_owner
|
||||
integer :: np, iam, nr, nt
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: ix,iy,iz,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_dpk_), allocatable :: val(:)
|
||||
! deltah dimension of each grid cell
|
||||
! deltat discretization time
|
||||
@@ -351,7 +351,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen
|
||||
real(psb_dpk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err,tmpfmt
|
||||
|
||||
|
||||
@@ -50,10 +50,10 @@ program s_file_spmv
|
||||
! communications data structure
|
||||
type(psb_desc_type):: desc_a
|
||||
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver paramters
|
||||
integer :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
integer(psb_ipk_) :: iter, itmax, ierr, itrace, ircode, ipart,&
|
||||
& methd, istopc, irst, nr
|
||||
integer(psb_long_int_k_) :: amatsize, descsize, annz, nbytes
|
||||
real(psb_spk_) :: err, eps,cond
|
||||
@@ -61,18 +61,18 @@ program s_file_spmv
|
||||
character(len=5) :: afmt
|
||||
character(len=20) :: name
|
||||
character(len=2) :: filefmt
|
||||
integer, parameter :: iunit=12
|
||||
integer, parameter :: times=10
|
||||
integer :: iparm(20)
|
||||
integer(psb_ipk_), parameter :: iunit=12
|
||||
integer(psb_ipk_), parameter :: times=10
|
||||
integer(psb_ipk_) :: iparm(20)
|
||||
|
||||
! other variables
|
||||
integer :: i,info,j,m_problem
|
||||
integer :: internal, m,ii,nnzero
|
||||
integer(psb_ipk_) :: i,info,j,m_problem
|
||||
integer(psb_ipk_) :: internal, m,ii,nnzero
|
||||
real(psb_dpk_) :: t1, t2, r_amax, b_amax,&
|
||||
&scale,resmx,resmxp, flops, bdwdth
|
||||
real(psb_dpk_) :: tt1, tt2, tflops
|
||||
integer :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer, allocatable :: ivg(:), ipv(:)
|
||||
integer(psb_ipk_) :: nrhs, nrow, n_row, dim, nv, ne
|
||||
integer(psb_ipk_), allocatable :: ivg(:), ipv(:)
|
||||
|
||||
|
||||
call psb_init(ictxt)
|
||||
|
||||
+18
-18
@@ -72,7 +72,7 @@ program ppde
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_dpk_), parameter :: one = 1.d0
|
||||
@@ -88,15 +88,15 @@ program ppde
|
||||
! dense matrices
|
||||
real(psb_dpk_), allocatable :: b(:), x(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_dpk_) :: err, eps
|
||||
|
||||
! other variables
|
||||
integer :: info, i
|
||||
integer(psb_ipk_) :: info, i
|
||||
character(len=20) :: name,ch_err, fname
|
||||
|
||||
info=psb_success_
|
||||
@@ -242,11 +242,11 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,kmethd,ptype,afmt,idim,istopc,itmax,itrace,irst)
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=*) :: kmethd, ptype, afmt
|
||||
integer :: idim, istopc,itmax,itrace,irst
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: idim, istopc,itmax,itrace,irst
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -324,7 +324,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -365,21 +365,21 @@ contains
|
||||
use psb_base_mod
|
||||
use psb_d_ell_mat_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
real(psb_dpk_), allocatable :: b(:),xv(:)
|
||||
type(psb_desc_type) :: desc_a
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_dspmat_type) :: a
|
||||
class(psb_d_base_sparse_mat), optional :: mold
|
||||
! Local
|
||||
real(psb_dpk_) :: zt(nb),x,y,z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: ix,iy,iz,ia,indx_owner
|
||||
integer :: np, iam, nr, nt
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: ix,iy,iz,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_dpk_), allocatable :: val(:)
|
||||
! deltah dimension of each grid cell
|
||||
|
||||
@@ -389,7 +389,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen
|
||||
real(psb_dpk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err,tmpfmt
|
||||
|
||||
|
||||
+18
-18
@@ -70,7 +70,7 @@ program ppde
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_spk_), parameter :: one = 1.0
|
||||
@@ -84,15 +84,15 @@ program ppde
|
||||
! dense matrices
|
||||
real(psb_spk_), allocatable :: b(:), x(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_spk_) :: err, eps
|
||||
|
||||
! other variables
|
||||
integer :: info, i
|
||||
integer(psb_ipk_) :: info, i
|
||||
character(len=20) :: name,ch_err
|
||||
|
||||
info=psb_success_
|
||||
@@ -219,11 +219,11 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,kmethd,ptype,afmt,idim,istopc,itmax,itrace,irst)
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=*) :: kmethd, ptype, afmt
|
||||
integer :: idim, istopc,itmax,itrace,irst
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: idim, istopc,itmax,itrace,irst
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -301,7 +301,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -342,21 +342,21 @@ contains
|
||||
use psb_base_mod
|
||||
use psb_mat_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
real(psb_spk_), allocatable :: b(:),xv(:)
|
||||
type(psb_desc_type) :: desc_a
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_sspmat_type) :: a
|
||||
type(psb_s_coo_sparse_mat) :: acoo
|
||||
type(psb_s_csr_sparse_mat) :: acsr
|
||||
real(psb_spk_) :: zt(nb),x,y,z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: ix,iy,iz,ia,indx_owner
|
||||
integer :: np, iam, nr, nt
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: ix,iy,iz,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_spk_), allocatable :: val(:)
|
||||
! deltah dimension of each grid cell
|
||||
! deltat discretization time
|
||||
@@ -365,7 +365,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen
|
||||
real(psb_spk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err,tmpfmt
|
||||
|
||||
|
||||
+18
-18
@@ -71,7 +71,7 @@ program ppde
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_dpk_), parameter :: one = 1.d0
|
||||
@@ -86,15 +86,15 @@ program ppde
|
||||
type(psb_d_vect_type) :: xxv,bv, vtst
|
||||
real(psb_dpk_), allocatable :: tst(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize, d2size
|
||||
real(psb_dpk_) :: err, eps
|
||||
|
||||
! other variables
|
||||
integer :: info, i
|
||||
integer(psb_ipk_) :: info, i
|
||||
character(len=20) :: name,ch_err
|
||||
character(len=40) :: fname
|
||||
|
||||
@@ -257,11 +257,11 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,kmethd,ptype,afmt,idim,istopc,itmax,itrace,irst)
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=*) :: kmethd, ptype, afmt
|
||||
integer :: idim, istopc,itmax,itrace,irst
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: idim, istopc,itmax,itrace,irst
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -339,7 +339,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -380,22 +380,22 @@ contains
|
||||
use psb_base_mod
|
||||
use psb_mat_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
type(psb_d_vect_type) :: xxv,bv
|
||||
type(psb_desc_type) :: desc_a
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_dspmat_type) :: a
|
||||
type(psb_d_csc_sparse_mat) :: acsc
|
||||
type(psb_d_coo_sparse_mat) :: acoo
|
||||
type(psb_d_csr_sparse_mat) :: acsr
|
||||
real(psb_dpk_) :: zt(nb),x,y,z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: ix,iy,iz,ia,indx_owner
|
||||
integer :: np, iam, nr, nt
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: ix,iy,iz,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_dpk_), allocatable :: val(:)
|
||||
! deltah dimension of each grid cell
|
||||
! deltat discretization time
|
||||
@@ -404,7 +404,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen
|
||||
real(psb_dpk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err,tmpfmt
|
||||
|
||||
|
||||
+18
-18
@@ -71,7 +71,7 @@ program ppde
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_spk_), parameter :: one = 1.0
|
||||
@@ -86,15 +86,15 @@ program ppde
|
||||
type(psb_s_vect_type) :: xxv,bv, vtst
|
||||
real(psb_spk_), allocatable :: tst(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize, d2size
|
||||
real(psb_spk_) :: err, eps
|
||||
|
||||
! other variables
|
||||
integer :: info, i
|
||||
integer(psb_ipk_) :: info, i
|
||||
character(len=20) :: name,ch_err
|
||||
character(len=40) :: fname
|
||||
|
||||
@@ -257,11 +257,11 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,kmethd,ptype,afmt,idim,istopc,itmax,itrace,irst)
|
||||
integer :: ictxt
|
||||
integer(psb_ipk_) :: ictxt
|
||||
character(len=*) :: kmethd, ptype, afmt
|
||||
integer :: idim, istopc,itmax,itrace,irst
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: idim, istopc,itmax,itrace,irst
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -339,7 +339,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -380,22 +380,22 @@ contains
|
||||
use psb_base_mod
|
||||
use psb_mat_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
type(psb_s_vect_type) :: xxv,bv
|
||||
type(psb_desc_type) :: desc_a
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_sspmat_type) :: a
|
||||
type(psb_s_csc_sparse_mat) :: acsc
|
||||
type(psb_s_coo_sparse_mat) :: acoo
|
||||
type(psb_s_csr_sparse_mat) :: acsr
|
||||
real(psb_spk_) :: zt(nb),x,y,z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: ix,iy,iz,ia,indx_owner
|
||||
integer :: np, iam, nr, nt
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: ix,iy,iz,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_spk_), allocatable :: val(:)
|
||||
! deltah dimension of each grid cell
|
||||
! deltat discretization time
|
||||
@@ -404,7 +404,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen
|
||||
real(psb_spk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err,tmpfmt
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ program d_coo_matgen
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_dpk_), parameter :: one = 1.d0
|
||||
@@ -24,15 +24,15 @@ program d_coo_matgen
|
||||
! dense matrices
|
||||
real(psb_dpk_), allocatable :: b(:), x(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_dpk_) :: err, eps
|
||||
|
||||
! other variables
|
||||
integer :: info, err_act
|
||||
integer(psb_ipk_) :: info, err_act
|
||||
character(len=20) :: name,ch_err
|
||||
|
||||
info=psb_success_
|
||||
@@ -82,10 +82,10 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,idim)
|
||||
integer :: ictxt
|
||||
integer :: idim
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: ictxt
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -99,7 +99,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -141,19 +141,19 @@ contains
|
||||
!!$ use psb_d_base_mat_mod
|
||||
use psb_d_csr_mat_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
real(psb_dpk_), allocatable :: b(:),xv(:)
|
||||
type(psb_desc_type) :: desc_a
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_dspmat_type) :: a
|
||||
real(psb_dpk_) :: zt(nb),glob_x,glob_y,glob_z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: x,y,z,ia,indx_owner
|
||||
integer :: np, iam, nr, nt,nz,isz
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: x,y,z,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt,nz,isz
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_dpk_), allocatable :: val(:)
|
||||
type(psb_d_coo_sparse_mat) :: acoo
|
||||
type(psb_d_csr_sparse_mat) :: acsr
|
||||
@@ -164,7 +164,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen, tcpy, tmov
|
||||
real(psb_dpk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err, asbfmt
|
||||
|
||||
|
||||
+18
-18
@@ -14,7 +14,7 @@ program d_matgen
|
||||
! input parameters
|
||||
character(len=20) :: kmethd, ptype
|
||||
character(len=5) :: afmt
|
||||
integer :: idim
|
||||
integer(psb_ipk_) :: idim
|
||||
|
||||
! miscellaneous
|
||||
real(psb_dpk_), parameter :: one = 1.d0
|
||||
@@ -28,10 +28,10 @@ program d_matgen
|
||||
! dense matrices
|
||||
real(psb_dpk_), allocatable :: b(:), x(:)
|
||||
! blacs parameters
|
||||
integer :: ictxt, iam, np
|
||||
integer(psb_ipk_) :: ictxt, iam, np
|
||||
|
||||
! solver parameters
|
||||
integer :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_ipk_) :: iter, itmax,itrace, istopc, irst
|
||||
integer(psb_long_int_k_) :: amatsize, precsize, descsize
|
||||
real(psb_dpk_) :: err, eps
|
||||
#ifdef HAVE_LIBRSB
|
||||
@@ -42,7 +42,7 @@ program d_matgen
|
||||
type(psb_d_cxx_sparse_mat) :: acxx
|
||||
|
||||
! other variables
|
||||
integer :: info, err_act
|
||||
integer(psb_ipk_) :: info, err_act
|
||||
character(len=20) :: name,ch_err
|
||||
|
||||
info=psb_success_
|
||||
@@ -104,10 +104,10 @@ contains
|
||||
! get iteration parameters from standard input
|
||||
!
|
||||
subroutine get_parms(ictxt,idim)
|
||||
integer :: ictxt
|
||||
integer :: idim
|
||||
integer :: np, iam
|
||||
integer :: intbuf(10), ip
|
||||
integer(psb_ipk_) :: ictxt
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_) :: np, iam
|
||||
integer(psb_ipk_) :: intbuf(10), ip
|
||||
|
||||
call psb_info(ictxt, iam, np)
|
||||
|
||||
@@ -121,7 +121,7 @@ contains
|
||||
! print an error message
|
||||
!
|
||||
subroutine pr_usage(iout)
|
||||
integer :: iout
|
||||
integer(psb_ipk_) :: iout
|
||||
write(iout,*)'incorrect parameter(s) found'
|
||||
write(iout,*)' usage: pde90 methd prec dim &
|
||||
&[istop itmax itrace]'
|
||||
@@ -161,20 +161,20 @@ contains
|
||||
!
|
||||
use psb_base_mod
|
||||
implicit none
|
||||
integer :: idim
|
||||
integer, parameter :: nb=20
|
||||
integer(psb_ipk_) :: idim
|
||||
integer(psb_ipk_), parameter :: nb=20
|
||||
real(psb_dpk_), allocatable :: b(:),xv(:)
|
||||
type(psb_desc_type) :: desc_a
|
||||
class(psb_d_base_sparse_mat) :: mold
|
||||
integer :: ictxt, info
|
||||
integer(psb_ipk_) :: ictxt, info
|
||||
character :: afmt*5
|
||||
type(psb_dspmat_type) :: a
|
||||
real(psb_dpk_) :: zt(nb),glob_x,glob_y,glob_z
|
||||
integer :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer :: x,y,z,ia,indx_owner
|
||||
integer :: np, iam, nr, nt,nz,isz
|
||||
integer :: element
|
||||
integer, allocatable :: irow(:),icol(:),myidx(:)
|
||||
integer(psb_ipk_) :: m,n,nnz,glob_row,nlr,i,ii,ib,k
|
||||
integer(psb_ipk_) :: x,y,z,ia,indx_owner
|
||||
integer(psb_ipk_) :: np, iam, nr, nt,nz,isz
|
||||
integer(psb_ipk_) :: element
|
||||
integer(psb_ipk_), allocatable :: irow(:),icol(:),myidx(:)
|
||||
real(psb_dpk_), allocatable :: val(:), diag(:)
|
||||
type(psb_dspmat_type) :: a_n
|
||||
class(psb_d_coo_sparse_mat), allocatable :: acoo
|
||||
@@ -186,7 +186,7 @@ contains
|
||||
real(psb_dpk_) :: t0, t1, t2, t3, tasb, talc, ttot, tgen, tcpy, tmov
|
||||
real(psb_dpk_) :: a1, a2, a3, a4, b1, b2, b3
|
||||
external :: a1, a2, a3, a4, b1, b2, b3
|
||||
integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
|
||||
character(len=20) :: name, ch_err
|
||||
|
||||
|
||||
+138
-138
@@ -19,14 +19,14 @@ subroutine psb_d_cxx_csmv(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc
|
||||
real(psb_dpk_) :: acc
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_csmv'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -88,13 +88,13 @@ subroutine psb_d_cxx_csmv(alpha,a,x,beta,y,info,trans)
|
||||
contains
|
||||
subroutine psb_d_cxx_csmv_inner(m,n,alpha,irp,ja,val,is_triangle,is_unit,&
|
||||
& x,beta,y,tra)
|
||||
integer, intent(in) :: m,n,irp(*),ja(*)
|
||||
integer(psb_ipk_), intent(in) :: m,n,irp(*),ja(*)
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(*),val(*)
|
||||
real(psb_dpk_), intent(inout) :: y(*)
|
||||
logical, intent(in) :: is_triangle,is_unit,tra
|
||||
|
||||
|
||||
integer :: i,j,k, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k, ir, jc
|
||||
real(psb_dpk_) :: acc
|
||||
|
||||
if (alpha == dzero) then
|
||||
@@ -316,14 +316,14 @@ subroutine psb_d_cxx_csmm(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_), allocatable :: acc(:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_csmm'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -391,13 +391,13 @@ subroutine psb_d_cxx_csmm(alpha,a,x,beta,y,info,trans)
|
||||
contains
|
||||
subroutine psb_d_cxx_csmm_inner(m,n,nc,alpha,irp,ja,val,&
|
||||
& is_triangle,is_unit,x,ldx,beta,y,ldy,tra,acc)
|
||||
integer, intent(in) :: m,n,ldx,ldy,nc,irp(*),ja(*)
|
||||
integer(psb_ipk_), intent(in) :: m,n,ldx,ldy,nc,irp(*),ja(*)
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(ldx,*),val(*)
|
||||
real(psb_dpk_), intent(inout) :: y(ldy,*)
|
||||
logical, intent(in) :: is_triangle,is_unit,tra
|
||||
|
||||
real(psb_dpk_), intent(inout) :: acc(*)
|
||||
integer :: i,j,k, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k, ir, jc
|
||||
|
||||
|
||||
if (alpha == dzero) then
|
||||
@@ -617,15 +617,15 @@ subroutine psb_d_cxx_cssv(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: tmp(:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_cssv'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -721,12 +721,12 @@ contains
|
||||
subroutine inner_cxxsv(tra,lower,unit,n,irp,ja,val,x,y)
|
||||
implicit none
|
||||
logical, intent(in) :: tra,lower,unit
|
||||
integer, intent(in) :: irp(*), ja(*),n
|
||||
integer(psb_ipk_), intent(in) :: irp(*), ja(*),n
|
||||
real(psb_dpk_), intent(in) :: val(*)
|
||||
real(psb_dpk_), intent(in) :: x(*)
|
||||
real(psb_dpk_), intent(out) :: y(*)
|
||||
|
||||
integer :: i,j,k,m, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k,m, ir, jc
|
||||
real(psb_dpk_) :: acc
|
||||
|
||||
if (.not.tra) then
|
||||
@@ -832,15 +832,15 @@ subroutine psb_d_cxx_cssm(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: tmp(:,:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_cssm'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -931,11 +931,11 @@ contains
|
||||
& irp,ja,val,x,ldx,y,ldy,info)
|
||||
implicit none
|
||||
logical, intent(in) :: tra,lower,unit
|
||||
integer, intent(in) :: nr,nc,ldx,ldy,irp(*),ja(*)
|
||||
integer(psb_ipk_), intent(in) :: nr,nc,ldx,ldy,irp(*),ja(*)
|
||||
real(psb_dpk_), intent(in) :: val(*), x(ldx,*)
|
||||
real(psb_dpk_), intent(out) :: y(ldy,*)
|
||||
integer, intent(out) :: info
|
||||
integer :: i,j,k,m, ir, jc
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_) :: i,j,k,m, ir, jc
|
||||
real(psb_dpk_), allocatable :: acc(:)
|
||||
|
||||
info = psb_success_
|
||||
@@ -1047,10 +1047,10 @@ function psb_d_cxx_csnmi(a) result(res)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_) :: res
|
||||
|
||||
integer :: i,j,k,m,n, nr, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nr, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_csnmi'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1076,11 +1076,11 @@ function psb_d_cxx_csnm1(a) result(res)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_) :: res
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc, info
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc, info
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_csnm1'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1111,11 +1111,11 @@ subroutine psb_d_cxx_rowsum(d,a)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='rowsum'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1159,11 +1159,11 @@ subroutine psb_d_cxx_arwsum(d,a)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='rowsum'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1207,11 +1207,11 @@ subroutine psb_d_cxx_colsum(d,a)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='colsum'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1258,11 +1258,11 @@ subroutine psb_d_cxx_aclsum(d,a)
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='aclsum'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1310,9 +1310,9 @@ subroutine psb_d_cxx_get_diag(a,d,info)
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
Integer :: err_act, mnm, i, j, k
|
||||
integer(psb_ipk_) :: err_act, mnm, i, j, k
|
||||
character(len=20) :: name='get_diag'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1358,9 +1358,9 @@ subroutine psb_d_cxx_scal(d,a,info)
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
Integer :: err_act,mnm, i, j, m
|
||||
integer(psb_ipk_) :: err_act,mnm, i, j, m
|
||||
character(len=20) :: name='scal'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1400,9 +1400,9 @@ subroutine psb_d_cxx_scals(d,a,info)
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
Integer :: err_act,mnm, i, j, m
|
||||
integer(psb_ipk_) :: err_act,mnm, i, j, m
|
||||
character(len=20) :: name='scal'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1447,9 +1447,9 @@ subroutine psb_d_cxx_reallocate_nz(nz,a)
|
||||
use psb_base_mod
|
||||
use psb_d_cxx_mat_mod, psb_protect_name => psb_d_cxx_reallocate_nz
|
||||
implicit none
|
||||
integer, intent(in) :: nz
|
||||
integer(psb_ipk_), intent(in) :: nz
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='d_cxx_reallocate_nz'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1484,8 +1484,8 @@ subroutine psb_d_cxx_mold(a,b,info)
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(out), allocatable :: b
|
||||
integer, intent(out) :: info
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='reallocate_nz'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1511,10 +1511,10 @@ subroutine psb_d_cxx_allocate_mnnz(m,n,a,nz)
|
||||
use psb_base_mod
|
||||
use psb_d_cxx_mat_mod, psb_protect_name => psb_d_cxx_allocate_mnnz
|
||||
implicit none
|
||||
integer, intent(in) :: m,n
|
||||
integer(psb_ipk_), intent(in) :: m,n
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
integer, intent(in), optional :: nz
|
||||
Integer :: err_act, info, nz_
|
||||
integer(psb_ipk_), intent(in), optional :: nz
|
||||
integer(psb_ipk_) :: err_act, info, nz_
|
||||
character(len=20) :: name='allocate_mnz'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1576,17 +1576,17 @@ subroutine psb_d_cxx_csgetptn(imin,imax,a,nz,ia,ja,info,&
|
||||
implicit none
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
|
||||
logical :: append_, rscale_, cscale_
|
||||
integer :: nzin_, jmin_, jmax_, err_act, i
|
||||
integer(psb_ipk_) :: nzin_, jmin_, jmax_, err_act, i
|
||||
character(len=20) :: name='csget'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1670,15 +1670,15 @@ contains
|
||||
implicit none
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer :: imin,imax,jmin,jmax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer, intent(in) :: nzin
|
||||
integer(psb_ipk_) :: imin,imax,jmin,jmax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_), intent(in) :: nzin
|
||||
logical, intent(in) :: append
|
||||
integer :: info
|
||||
integer, optional :: iren(:)
|
||||
integer :: nzin_, nza, idx,i,j,k, nzt, irw, lrw
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: info
|
||||
integer(psb_ipk_), optional :: iren(:)
|
||||
integer(psb_ipk_) :: nzin_, nza, idx,i,j,k, nzt, irw, lrw
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name='cxx_getptn'
|
||||
|
||||
debug_unit = psb_get_debug_unit()
|
||||
@@ -1743,18 +1743,18 @@ subroutine psb_d_cxx_csgetrow(imin,imax,a,nz,ia,ja,val,info,&
|
||||
implicit none
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
real(psb_dpk_), allocatable, intent(inout) :: val(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
|
||||
logical :: append_, rscale_, cscale_
|
||||
integer :: nzin_, jmin_, jmax_, err_act, i
|
||||
integer(psb_ipk_) :: nzin_, jmin_, jmax_, err_act, i
|
||||
character(len=20) :: name='csget'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -1839,16 +1839,16 @@ contains
|
||||
implicit none
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer :: imin,imax,jmin,jmax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_) :: imin,imax,jmin,jmax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
real(psb_dpk_), allocatable, intent(inout) :: val(:)
|
||||
integer, intent(in) :: nzin
|
||||
integer(psb_ipk_), intent(in) :: nzin
|
||||
logical, intent(in) :: append
|
||||
integer :: info
|
||||
integer, optional :: iren(:)
|
||||
integer :: nzin_, nza, idx,i,j,k, nzt, irw, lrw
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: info
|
||||
integer(psb_ipk_), optional :: iren(:)
|
||||
integer(psb_ipk_) :: nzin_, nza, idx,i,j,k, nzt, irw, lrw
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name='coo_getrow'
|
||||
|
||||
debug_unit = psb_get_debug_unit()
|
||||
@@ -1916,13 +1916,13 @@ subroutine psb_d_cxx_csgetblk(imin,imax,a,b,info,&
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(in) :: imin,imax
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
Integer :: err_act, nzin, nzout
|
||||
integer(psb_ipk_) :: err_act, nzin, nzout
|
||||
character(len=20) :: name='csget'
|
||||
logical :: append_
|
||||
logical, parameter :: debug=.false.
|
||||
@@ -1974,15 +1974,15 @@ subroutine psb_d_cxx_csput(nz,ia,ja,val,a,imin,imax,jmin,jmax,info,gtl)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: val(:)
|
||||
integer, intent(in) :: nz, ia(:), ja(:), imin,imax,jmin,jmax
|
||||
integer, intent(out) :: info
|
||||
integer, intent(in), optional :: gtl(:)
|
||||
integer(psb_ipk_), intent(in) :: nz, ia(:), ja(:), imin,imax,jmin,jmax
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
||||
|
||||
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_csput'
|
||||
logical, parameter :: debug=.false.
|
||||
integer :: nza, i,j,k, nzl, isza, int_err(5)
|
||||
integer(psb_ipk_) :: nza, i,j,k, nzl, isza, int_err(5)
|
||||
|
||||
|
||||
call psb_erractionsave(err_act)
|
||||
@@ -2061,14 +2061,14 @@ contains
|
||||
implicit none
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
integer, intent(in) :: nz, imin,imax,jmin,jmax
|
||||
integer, intent(in) :: ia(:),ja(:)
|
||||
integer(psb_ipk_), intent(in) :: nz, imin,imax,jmin,jmax
|
||||
integer(psb_ipk_), intent(in) :: ia(:),ja(:)
|
||||
real(psb_dpk_), intent(in) :: val(:)
|
||||
integer, intent(out) :: info
|
||||
integer, intent(in), optional :: gtl(:)
|
||||
integer :: i,ir,ic, ilr, ilc, ip, &
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
||||
integer(psb_ipk_) :: i,ir,ic, ilr, ilc, ip, &
|
||||
& i1,i2,nr,nc,nnz,dupl,ng
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name='d_cxx_srch_upd'
|
||||
|
||||
info = psb_success_
|
||||
@@ -2257,7 +2257,7 @@ subroutine psb_d_cxx_reinit(a,clear)
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
logical, intent(in), optional :: clear
|
||||
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='reinit'
|
||||
logical :: clear_
|
||||
logical, parameter :: debug=.false.
|
||||
@@ -2303,7 +2303,7 @@ subroutine psb_d_cxx_trim(a)
|
||||
use psb_d_cxx_mat_mod, psb_protect_name => psb_d_cxx_trim
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
Integer :: err_act, info, nz, m
|
||||
integer(psb_ipk_) :: err_act, info, nz, m
|
||||
character(len=20) :: name='trim'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -2336,19 +2336,19 @@ subroutine psb_d_cxx_print(iout,a,iv,eirs,eics,head,ivr,ivc)
|
||||
use psb_d_cxx_mat_mod, psb_protect_name => psb_d_cxx_print
|
||||
implicit none
|
||||
|
||||
integer, intent(in) :: iout
|
||||
integer(psb_ipk_), intent(in) :: iout
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in), optional :: iv(:)
|
||||
integer, intent(in), optional :: eirs,eics
|
||||
integer(psb_ipk_), intent(in), optional :: iv(:)
|
||||
integer(psb_ipk_), intent(in), optional :: eirs,eics
|
||||
character(len=*), optional :: head
|
||||
integer, intent(in), optional :: ivr(:), ivc(:)
|
||||
integer(psb_ipk_), intent(in), optional :: ivr(:), ivc(:)
|
||||
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cxx_print'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
character(len=80) :: frmtv
|
||||
integer :: irs,ics,i,j, nmx, ni, nr, nc, nz
|
||||
integer(psb_ipk_) :: irs,ics,i,j, nmx, ni, nr, nc, nz
|
||||
|
||||
if (present(eirs)) then
|
||||
irs = eirs
|
||||
@@ -2420,15 +2420,15 @@ subroutine psb_d_cp_cxx_from_coo(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2447,14 +2447,14 @@ subroutine psb_d_cp_cxx_to_coo(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2487,14 +2487,14 @@ subroutine psb_d_mv_cxx_to_coo(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2529,14 +2529,14 @@ subroutine psb_d_mv_cxx_from_coo(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2616,14 +2616,14 @@ subroutine psb_d_mv_cxx_to_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2654,14 +2654,14 @@ subroutine psb_d_cp_cxx_to_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2692,14 +2692,14 @@ subroutine psb_d_mv_cxx_from_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2731,14 +2731,14 @@ subroutine psb_d_cp_cxx_from_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nz, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nz, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -2769,7 +2769,7 @@ subroutine psb_d_cxx_cp_from(a,b)
|
||||
type(psb_d_cxx_sparse_mat), intent(in) :: b
|
||||
|
||||
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='cp_from'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -2808,7 +2808,7 @@ subroutine psb_d_cxx_mv_from(a,b)
|
||||
type(psb_d_cxx_sparse_mat), intent(inout) :: b
|
||||
|
||||
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='mv_from'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ module psb_d_cxx_mat_mod
|
||||
|
||||
type, extends(psb_d_base_sparse_mat) :: psb_d_cxx_sparse_mat
|
||||
|
||||
integer, allocatable :: irp(:), ja(:)
|
||||
integer(psb_ipk_), allocatable :: irp(:), ja(:)
|
||||
real(psb_dpk_), allocatable :: val(:)
|
||||
|
||||
contains
|
||||
@@ -57,7 +57,7 @@ module psb_d_cxx_mat_mod
|
||||
interface
|
||||
subroutine psb_d_cxx_reallocate_nz(nz,a)
|
||||
import :: psb_d_cxx_sparse_mat
|
||||
integer, intent(in) :: nz
|
||||
integer(psb_ipk_), intent(in) :: nz
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
end subroutine psb_d_cxx_reallocate_nz
|
||||
end interface
|
||||
@@ -82,28 +82,28 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_base_sparse_mat, psb_long_int_k_
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(out), allocatable :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cxx_mold
|
||||
end interface
|
||||
|
||||
interface
|
||||
subroutine psb_d_cxx_allocate_mnnz(m,n,a,nz)
|
||||
import :: psb_d_cxx_sparse_mat
|
||||
integer, intent(in) :: m,n
|
||||
integer(psb_ipk_), intent(in) :: m,n
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
integer, intent(in), optional :: nz
|
||||
integer(psb_ipk_), intent(in), optional :: nz
|
||||
end subroutine psb_d_cxx_allocate_mnnz
|
||||
end interface
|
||||
|
||||
interface
|
||||
subroutine psb_d_cxx_print(iout,a,iv,eirs,eics,head,ivr,ivc)
|
||||
import :: psb_d_cxx_sparse_mat
|
||||
integer, intent(in) :: iout
|
||||
integer(psb_ipk_), intent(in) :: iout
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in), optional :: iv(:)
|
||||
integer, intent(in), optional :: eirs,eics
|
||||
integer(psb_ipk_), intent(in), optional :: iv(:)
|
||||
integer(psb_ipk_), intent(in), optional :: eirs,eics
|
||||
character(len=*), optional :: head
|
||||
integer, intent(in), optional :: ivr(:), ivc(:)
|
||||
integer(psb_ipk_), intent(in), optional :: ivr(:), ivc(:)
|
||||
end subroutine psb_d_cxx_print
|
||||
end interface
|
||||
|
||||
@@ -112,7 +112,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_coo_sparse_mat, psb_d_cxx_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cxx_to_coo
|
||||
end interface
|
||||
|
||||
@@ -121,7 +121,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_coo_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cxx_from_coo
|
||||
end interface
|
||||
|
||||
@@ -130,7 +130,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cxx_to_fmt
|
||||
end interface
|
||||
|
||||
@@ -139,7 +139,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cxx_from_fmt
|
||||
end interface
|
||||
|
||||
@@ -148,7 +148,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_coo_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cxx_to_coo
|
||||
end interface
|
||||
|
||||
@@ -157,7 +157,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_coo_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cxx_from_coo
|
||||
end interface
|
||||
|
||||
@@ -166,7 +166,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cxx_to_fmt
|
||||
end interface
|
||||
|
||||
@@ -175,7 +175,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cxx_from_fmt
|
||||
end interface
|
||||
|
||||
@@ -201,10 +201,10 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: val(:)
|
||||
integer, intent(in) :: nz,ia(:), ja(:),&
|
||||
integer(psb_ipk_), intent(in) :: nz,ia(:), ja(:),&
|
||||
& imin,imax,jmin,jmax
|
||||
integer, intent(out) :: info
|
||||
integer, intent(in), optional :: gtl(:)
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
||||
end subroutine psb_d_cxx_csput
|
||||
end interface
|
||||
|
||||
@@ -213,13 +213,13 @@ module psb_d_cxx_mat_mod
|
||||
& jmin,jmax,iren,append,nzin,rscale,cscale)
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
end subroutine psb_d_cxx_csgetptn
|
||||
end interface
|
||||
@@ -229,14 +229,14 @@ module psb_d_cxx_mat_mod
|
||||
& jmin,jmax,iren,append,nzin,rscale,cscale)
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
real(psb_dpk_), allocatable, intent(inout) :: val(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
end subroutine psb_d_cxx_csgetrow
|
||||
end interface
|
||||
@@ -247,11 +247,11 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_, psb_d_coo_sparse_mat
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(in) :: imin,imax
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
end subroutine psb_d_cxx_csgetblk
|
||||
end interface
|
||||
@@ -262,7 +262,7 @@ module psb_d_cxx_mat_mod
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cxx_cssv
|
||||
subroutine psb_d_cxx_cssm(alpha,a,x,beta,y,info,trans)
|
||||
@@ -270,7 +270,7 @@ module psb_d_cxx_mat_mod
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cxx_cssm
|
||||
end interface
|
||||
@@ -281,7 +281,7 @@ module psb_d_cxx_mat_mod
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cxx_csmv
|
||||
subroutine psb_d_cxx_csmm(alpha,a,x,beta,y,info,trans)
|
||||
@@ -289,7 +289,7 @@ module psb_d_cxx_mat_mod
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cxx_csmm
|
||||
end interface
|
||||
@@ -348,7 +348,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cxx_get_diag
|
||||
end interface
|
||||
|
||||
@@ -357,7 +357,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cxx_scal
|
||||
end interface
|
||||
|
||||
@@ -366,7 +366,7 @@ module psb_d_cxx_mat_mod
|
||||
import :: psb_d_cxx_sparse_mat, psb_dpk_
|
||||
class(psb_d_cxx_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cxx_scals
|
||||
end interface
|
||||
|
||||
@@ -407,14 +407,14 @@ contains
|
||||
function d_cxx_get_nzeros(a) result(res)
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer :: res
|
||||
integer(psb_ipk_) :: res
|
||||
res = a%irp(a%get_nrows()+1)-1
|
||||
end function d_cxx_get_nzeros
|
||||
|
||||
function d_cxx_get_size(a) result(res)
|
||||
implicit none
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer :: res
|
||||
integer(psb_ipk_) :: res
|
||||
|
||||
res = -1
|
||||
|
||||
@@ -442,8 +442,8 @@ contains
|
||||
implicit none
|
||||
|
||||
class(psb_d_cxx_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: idx
|
||||
integer :: res
|
||||
integer(psb_ipk_), intent(in) :: idx
|
||||
integer(psb_ipk_) :: res
|
||||
|
||||
res = 0
|
||||
|
||||
|
||||
+107
-107
@@ -8,14 +8,14 @@ subroutine psb_d_cyy_csmv(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc
|
||||
real(psb_dpk_) :: acc
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_csmv'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -31,14 +31,14 @@ subroutine psb_d_cyy_csmm(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_), allocatable :: acc(:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_csmm'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -52,15 +52,15 @@ subroutine psb_d_cyy_cssv(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: tmp(:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_cssv'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -74,15 +74,15 @@ subroutine psb_d_cyy_cssm(alpha,a,x,beta,y,info,trans)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
|
||||
character :: trans_
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: tmp(:,:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_cssm'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -97,10 +97,10 @@ function psb_d_cyy_csnmi(a) result(res)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_) :: res
|
||||
|
||||
integer :: i,j,k,m,n, nr, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nr, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_csnmi'
|
||||
logical, parameter :: debug=.false.
|
||||
res = dzero
|
||||
@@ -114,11 +114,11 @@ function psb_d_cyy_csnm1(a) result(res)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_) :: res
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc, info
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc, info
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_csnm1'
|
||||
logical, parameter :: debug=.false.
|
||||
res = -done
|
||||
@@ -131,11 +131,11 @@ subroutine psb_d_cyy_rowsum(d,a)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='rowsum'
|
||||
logical, parameter :: debug=.false.
|
||||
return
|
||||
@@ -147,11 +147,11 @@ subroutine psb_d_cyy_arwsum(d,a)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='rowsum'
|
||||
logical, parameter :: debug=.false.
|
||||
end subroutine psb_d_cyy_arwsum
|
||||
@@ -162,11 +162,11 @@ subroutine psb_d_cyy_colsum(d,a)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='colsum'
|
||||
logical, parameter :: debug=.false.
|
||||
end subroutine psb_d_cyy_colsum
|
||||
@@ -177,11 +177,11 @@ subroutine psb_d_cyy_aclsum(d,a)
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
|
||||
integer :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
integer(psb_ipk_) :: i,j,k,m,n, nnz, ir, jc, nc
|
||||
real(psb_dpk_) :: acc
|
||||
real(psb_dpk_), allocatable :: vt(:)
|
||||
logical :: tra
|
||||
Integer :: err_act, info, int_err(5)
|
||||
integer(psb_ipk_) :: err_act, info, int_err(5)
|
||||
character(len=20) :: name='aclsum'
|
||||
logical, parameter :: debug=.false.
|
||||
end subroutine psb_d_cyy_aclsum
|
||||
@@ -192,9 +192,9 @@ subroutine psb_d_cyy_get_diag(a,d,info)
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
Integer :: err_act, mnm, i, j, k
|
||||
integer(psb_ipk_) :: err_act, mnm, i, j, k
|
||||
character(len=20) :: name='get_diag'
|
||||
logical, parameter :: debug=.false.
|
||||
info = psb_success_
|
||||
@@ -206,9 +206,9 @@ subroutine psb_d_cyy_scal(d,a,info)
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
Integer :: err_act,mnm, i, j, m
|
||||
integer(psb_ipk_) :: err_act,mnm, i, j, m
|
||||
character(len=20) :: name='scal'
|
||||
logical, parameter :: debug=.false.
|
||||
info = psb_success_
|
||||
@@ -220,9 +220,9 @@ subroutine psb_d_cyy_scals(d,a,info)
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
Integer :: err_act,mnm, i, j, m
|
||||
integer(psb_ipk_) :: err_act,mnm, i, j, m
|
||||
character(len=20) :: name='scal'
|
||||
logical, parameter :: debug=.false.
|
||||
info = psb_success_
|
||||
@@ -232,9 +232,9 @@ subroutine psb_d_cyy_reallocate_nz(nz,a)
|
||||
use psb_base_mod
|
||||
use psb_d_cyy_mat_mod, psb_protect_name => psb_d_cyy_reallocate_nz
|
||||
implicit none
|
||||
integer, intent(in) :: nz
|
||||
integer(psb_ipk_), intent(in) :: nz
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='d_cyy_reallocate_nz'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -246,8 +246,8 @@ subroutine psb_d_cyy_mold(a,b,info)
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(out), allocatable :: b
|
||||
integer, intent(out) :: info
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='reallocate_nz'
|
||||
logical, parameter :: debug=.false.
|
||||
end subroutine psb_d_cyy_mold
|
||||
@@ -256,10 +256,10 @@ subroutine psb_d_cyy_allocate_mnnz(m,n,a,nz)
|
||||
use psb_base_mod
|
||||
use psb_d_cyy_mat_mod, psb_protect_name => psb_d_cyy_allocate_mnnz
|
||||
implicit none
|
||||
integer, intent(in) :: m,n
|
||||
integer(psb_ipk_), intent(in) :: m,n
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
integer, intent(in), optional :: nz
|
||||
Integer :: err_act, info, nz_
|
||||
integer(psb_ipk_), intent(in), optional :: nz
|
||||
integer(psb_ipk_) :: err_act, info, nz_
|
||||
character(len=20) :: name='allocate_mnz'
|
||||
logical, parameter :: debug=.false.
|
||||
end subroutine psb_d_cyy_allocate_mnnz
|
||||
@@ -271,17 +271,17 @@ subroutine psb_d_cyy_csgetptn(imin,imax,a,nz,ia,ja,info,&
|
||||
implicit none
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
|
||||
logical :: append_, rscale_, cscale_
|
||||
integer :: nzin_, jmin_, jmax_, err_act, i
|
||||
integer(psb_ipk_) :: nzin_, jmin_, jmax_, err_act, i
|
||||
character(len=20) :: name='csget'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -294,18 +294,18 @@ subroutine psb_d_cyy_csgetrow(imin,imax,a,nz,ia,ja,val,info,&
|
||||
implicit none
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
real(psb_dpk_), allocatable, intent(inout) :: val(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
|
||||
logical :: append_, rscale_, cscale_
|
||||
integer :: nzin_, jmin_, jmax_, err_act, i
|
||||
integer(psb_ipk_) :: nzin_, jmin_, jmax_, err_act, i
|
||||
character(len=20) :: name='csget'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -321,13 +321,13 @@ subroutine psb_d_cyy_csgetblk(imin,imax,a,b,info,&
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(in) :: imin,imax
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
Integer :: err_act, nzin, nzout
|
||||
integer(psb_ipk_) :: err_act, nzin, nzout
|
||||
character(len=20) :: name='csget'
|
||||
logical :: append_
|
||||
logical, parameter :: debug=.false.
|
||||
@@ -342,14 +342,14 @@ subroutine psb_d_cyy_csput(nz,ia,ja,val,a,imin,imax,jmin,jmax,info,gtl)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: val(:)
|
||||
integer, intent(in) :: nz, ia(:), ja(:), imin,imax,jmin,jmax
|
||||
integer, intent(out) :: info
|
||||
integer, intent(in), optional :: gtl(:)
|
||||
integer(psb_ipk_), intent(in) :: nz, ia(:), ja(:), imin,imax,jmin,jmax
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
||||
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_csput'
|
||||
logical, parameter :: debug=.false.
|
||||
integer :: nza, i,j,k, nzl, isza, int_err(5)
|
||||
integer(psb_ipk_) :: nza, i,j,k, nzl, isza, int_err(5)
|
||||
info = psb_success_
|
||||
|
||||
end subroutine psb_d_cyy_csput
|
||||
@@ -362,7 +362,7 @@ subroutine psb_d_cyy_reinit(a,clear)
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
logical, intent(in), optional :: clear
|
||||
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='reinit'
|
||||
logical :: clear_
|
||||
logical, parameter :: debug=.false.
|
||||
@@ -375,7 +375,7 @@ subroutine psb_d_cyy_trim(a)
|
||||
use psb_d_cyy_mat_mod, psb_protect_name => psb_d_cyy_trim
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
Integer :: err_act, info, nz, m
|
||||
integer(psb_ipk_) :: err_act, info, nz, m
|
||||
character(len=20) :: name='trim'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -387,18 +387,18 @@ subroutine psb_d_cyy_print(iout,a,iv,eirs,eics,head,ivr,ivc)
|
||||
use psb_d_cyy_mat_mod, psb_protect_name => psb_d_cyy_print
|
||||
implicit none
|
||||
|
||||
integer, intent(in) :: iout
|
||||
integer(psb_ipk_), intent(in) :: iout
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in), optional :: iv(:)
|
||||
integer, intent(in), optional :: eirs,eics
|
||||
integer(psb_ipk_), intent(in), optional :: iv(:)
|
||||
integer(psb_ipk_), intent(in), optional :: eirs,eics
|
||||
character(len=*), optional :: head
|
||||
integer, intent(in), optional :: ivr(:), ivc(:)
|
||||
integer(psb_ipk_), intent(in), optional :: ivr(:), ivc(:)
|
||||
|
||||
Integer :: err_act
|
||||
integer(psb_ipk_) :: err_act
|
||||
character(len=20) :: name='d_cyy_print'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
integer :: irs,ics,i,j, nmx, ni, nr, nc, nz
|
||||
integer(psb_ipk_) :: irs,ics,i,j, nmx, ni, nr, nc, nz
|
||||
end subroutine psb_d_cyy_print
|
||||
|
||||
subroutine psb_d_cp_cyy_from_coo(a,b,info)
|
||||
@@ -408,15 +408,15 @@ subroutine psb_d_cp_cyy_from_coo(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -429,14 +429,14 @@ subroutine psb_d_cp_cyy_to_coo(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -449,14 +449,14 @@ subroutine psb_d_mv_cyy_to_coo(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, nc,i,j,irw, idl,err_act
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -469,14 +469,14 @@ subroutine psb_d_mv_cyy_from_coo(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
integer, allocatable :: itemp(:)
|
||||
integer(psb_ipk_), allocatable :: itemp(:)
|
||||
!locals
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -489,14 +489,14 @@ subroutine psb_d_mv_cyy_to_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -510,14 +510,14 @@ subroutine psb_d_cp_cyy_to_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -530,14 +530,14 @@ subroutine psb_d_mv_cyy_from_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nza, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -551,14 +551,14 @@ subroutine psb_d_cp_cyy_from_fmt(a,b,info)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
|
||||
!locals
|
||||
type(psb_d_coo_sparse_mat) :: tmp
|
||||
logical :: rwshr_
|
||||
Integer :: nz, nr, i,j,irw, idl,err_act, nc
|
||||
Integer, Parameter :: maxtry=8
|
||||
integer :: debug_level, debug_unit
|
||||
integer(psb_ipk_) :: nz, nr, i,j,irw, idl,err_act, nc
|
||||
integer(psb_ipk_), Parameter :: maxtry=8
|
||||
integer(psb_ipk_) :: debug_level, debug_unit
|
||||
character(len=20) :: name
|
||||
|
||||
info = psb_success_
|
||||
@@ -571,7 +571,7 @@ subroutine psb_d_cyy_cp_from(a,b)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
type(psb_d_cyy_sparse_mat), intent(in) :: b
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='cp_from'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
@@ -586,7 +586,7 @@ subroutine psb_d_cyy_mv_from(a,b)
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
type(psb_d_cyy_sparse_mat), intent(inout) :: b
|
||||
Integer :: err_act, info
|
||||
integer(psb_ipk_) :: err_act, info
|
||||
character(len=20) :: name='mv_from'
|
||||
logical, parameter :: debug=.false.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ module psb_d_cyy_mat_mod
|
||||
|
||||
type, extends(psb_d_base_sparse_mat) :: psb_d_cyy_sparse_mat
|
||||
|
||||
integer, allocatable :: irp(:), ja(:)
|
||||
integer(psb_ipk_), allocatable :: irp(:), ja(:)
|
||||
real(psb_dpk_), allocatable :: val(:)
|
||||
|
||||
contains
|
||||
@@ -57,7 +57,7 @@ module psb_d_cyy_mat_mod
|
||||
interface
|
||||
subroutine psb_d_cyy_reallocate_nz(nz,a)
|
||||
import :: psb_d_cyy_sparse_mat
|
||||
integer, intent(in) :: nz
|
||||
integer(psb_ipk_), intent(in) :: nz
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
end subroutine psb_d_cyy_reallocate_nz
|
||||
end interface
|
||||
@@ -82,28 +82,28 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_base_sparse_mat, psb_long_int_k_
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(out), allocatable :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cyy_mold
|
||||
end interface
|
||||
|
||||
interface
|
||||
subroutine psb_d_cyy_allocate_mnnz(m,n,a,nz)
|
||||
import :: psb_d_cyy_sparse_mat
|
||||
integer, intent(in) :: m,n
|
||||
integer(psb_ipk_), intent(in) :: m,n
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
integer, intent(in), optional :: nz
|
||||
integer(psb_ipk_), intent(in), optional :: nz
|
||||
end subroutine psb_d_cyy_allocate_mnnz
|
||||
end interface
|
||||
|
||||
interface
|
||||
subroutine psb_d_cyy_print(iout,a,iv,eirs,eics,head,ivr,ivc)
|
||||
import :: psb_d_cyy_sparse_mat
|
||||
integer, intent(in) :: iout
|
||||
integer(psb_ipk_), intent(in) :: iout
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in), optional :: iv(:)
|
||||
integer, intent(in), optional :: eirs,eics
|
||||
integer(psb_ipk_), intent(in), optional :: iv(:)
|
||||
integer(psb_ipk_), intent(in), optional :: eirs,eics
|
||||
character(len=*), optional :: head
|
||||
integer, intent(in), optional :: ivr(:), ivc(:)
|
||||
integer(psb_ipk_), intent(in), optional :: ivr(:), ivc(:)
|
||||
end subroutine psb_d_cyy_print
|
||||
end interface
|
||||
|
||||
@@ -112,7 +112,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_coo_sparse_mat, psb_d_cyy_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cyy_to_coo
|
||||
end interface
|
||||
|
||||
@@ -121,7 +121,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_coo_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cyy_from_coo
|
||||
end interface
|
||||
|
||||
@@ -130,7 +130,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cyy_to_fmt
|
||||
end interface
|
||||
|
||||
@@ -139,7 +139,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(in) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cp_cyy_from_fmt
|
||||
end interface
|
||||
|
||||
@@ -148,7 +148,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_coo_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cyy_to_coo
|
||||
end interface
|
||||
|
||||
@@ -157,7 +157,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_coo_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cyy_from_coo
|
||||
end interface
|
||||
|
||||
@@ -166,7 +166,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cyy_to_fmt
|
||||
end interface
|
||||
|
||||
@@ -175,7 +175,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_d_base_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
class(psb_d_base_sparse_mat), intent(inout) :: b
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_mv_cyy_from_fmt
|
||||
end interface
|
||||
|
||||
@@ -201,10 +201,10 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: val(:)
|
||||
integer, intent(in) :: nz,ia(:), ja(:),&
|
||||
integer(psb_ipk_), intent(in) :: nz,ia(:), ja(:),&
|
||||
& imin,imax,jmin,jmax
|
||||
integer, intent(out) :: info
|
||||
integer, intent(in), optional :: gtl(:)
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
integer(psb_ipk_), intent(in), optional :: gtl(:)
|
||||
end subroutine psb_d_cyy_csput
|
||||
end interface
|
||||
|
||||
@@ -213,13 +213,13 @@ module psb_d_cyy_mat_mod
|
||||
& jmin,jmax,iren,append,nzin,rscale,cscale)
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
end subroutine psb_d_cyy_csgetptn
|
||||
end interface
|
||||
@@ -229,14 +229,14 @@ module psb_d_cyy_mat_mod
|
||||
& jmin,jmax,iren,append,nzin,rscale,cscale)
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: imin,imax
|
||||
integer, intent(out) :: nz
|
||||
integer, allocatable, intent(inout) :: ia(:), ja(:)
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_), intent(out) :: nz
|
||||
integer(psb_ipk_), allocatable, intent(inout) :: ia(:), ja(:)
|
||||
real(psb_dpk_), allocatable, intent(inout) :: val(:)
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax, nzin
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax, nzin
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
end subroutine psb_d_cyy_csgetrow
|
||||
end interface
|
||||
@@ -247,11 +247,11 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_, psb_d_coo_sparse_mat
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
class(psb_d_coo_sparse_mat), intent(inout) :: b
|
||||
integer, intent(in) :: imin,imax
|
||||
integer,intent(out) :: info
|
||||
integer(psb_ipk_), intent(in) :: imin,imax
|
||||
integer(psb_ipk_),intent(out) :: info
|
||||
logical, intent(in), optional :: append
|
||||
integer, intent(in), optional :: iren(:)
|
||||
integer, intent(in), optional :: jmin,jmax
|
||||
integer(psb_ipk_), intent(in), optional :: iren(:)
|
||||
integer(psb_ipk_), intent(in), optional :: jmin,jmax
|
||||
logical, intent(in), optional :: rscale,cscale
|
||||
end subroutine psb_d_cyy_csgetblk
|
||||
end interface
|
||||
@@ -262,7 +262,7 @@ module psb_d_cyy_mat_mod
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cyy_cssv
|
||||
subroutine psb_d_cyy_cssm(alpha,a,x,beta,y,info,trans)
|
||||
@@ -270,7 +270,7 @@ module psb_d_cyy_mat_mod
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cyy_cssm
|
||||
end interface
|
||||
@@ -281,7 +281,7 @@ module psb_d_cyy_mat_mod
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:)
|
||||
real(psb_dpk_), intent(inout) :: y(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cyy_csmv
|
||||
subroutine psb_d_cyy_csmm(alpha,a,x,beta,y,info,trans)
|
||||
@@ -289,7 +289,7 @@ module psb_d_cyy_mat_mod
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(in) :: alpha, beta, x(:,:)
|
||||
real(psb_dpk_), intent(inout) :: y(:,:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
character, optional, intent(in) :: trans
|
||||
end subroutine psb_d_cyy_csmm
|
||||
end interface
|
||||
@@ -348,7 +348,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
real(psb_dpk_), intent(out) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cyy_get_diag
|
||||
end interface
|
||||
|
||||
@@ -357,7 +357,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d(:)
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cyy_scal
|
||||
end interface
|
||||
|
||||
@@ -366,7 +366,7 @@ module psb_d_cyy_mat_mod
|
||||
import :: psb_d_cyy_sparse_mat, psb_dpk_
|
||||
class(psb_d_cyy_sparse_mat), intent(inout) :: a
|
||||
real(psb_dpk_), intent(in) :: d
|
||||
integer, intent(out) :: info
|
||||
integer(psb_ipk_), intent(out) :: info
|
||||
end subroutine psb_d_cyy_scals
|
||||
end interface
|
||||
|
||||
@@ -390,14 +390,14 @@ contains
|
||||
function d_cyy_get_nzeros(a) result(res)
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer :: res
|
||||
integer(psb_ipk_) :: res
|
||||
res = 0
|
||||
end function d_cyy_get_nzeros
|
||||
|
||||
function d_cyy_get_size(a) result(res)
|
||||
implicit none
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer :: res
|
||||
integer(psb_ipk_) :: res
|
||||
res = 0
|
||||
end function d_cyy_get_size
|
||||
|
||||
@@ -408,8 +408,8 @@ contains
|
||||
implicit none
|
||||
|
||||
class(psb_d_cyy_sparse_mat), intent(in) :: a
|
||||
integer, intent(in) :: idx
|
||||
integer :: res
|
||||
integer(psb_ipk_), intent(in) :: idx
|
||||
integer(psb_ipk_) :: res
|
||||
res = 0
|
||||
end function d_cyy_get_nz_row
|
||||
|
||||
|
||||
+348
-348
File diff suppressed because it is too large
Load Diff
+348
-348
File diff suppressed because it is too large
Load Diff
+348
-348
File diff suppressed because it is too large
Load Diff
+348
-348
File diff suppressed because it is too large
Load Diff
@@ -9,9 +9,9 @@ program main
|
||||
use psb_base_mod
|
||||
use psb_mvsv_tester
|
||||
implicit none
|
||||
integer, parameter :: psb_fidasize_=16
|
||||
integer :: res,passed=0,failed=0;
|
||||
integer :: ictxt, iam=-1, np=-1
|
||||
integer(psb_ipk_), parameter :: psb_fidasize_=16
|
||||
integer(psb_ipk_) :: res,passed=0,failed=0;
|
||||
integer(psb_ipk_) :: ictxt, iam=-1, np=-1
|
||||
character(len=psb_fidasize_) :: afmt
|
||||
|
||||
write(psb_out_unit,*) 'Format ?'
|
||||
|
||||
@@ -39,7 +39,7 @@ program dhb2mm
|
||||
use psb_util_mod
|
||||
type(psb_dspmat_type) :: a
|
||||
|
||||
integer :: info
|
||||
integer(psb_ipk_) :: info
|
||||
character(len=72) :: mtitle
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ program dmm2hb
|
||||
use psb_util_mod
|
||||
type(psb_dspmat_type) :: a
|
||||
|
||||
integer info
|
||||
integer(psb_ipk_) :: info
|
||||
|
||||
call mm_mat_read(a,info)
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ program zhb2mm
|
||||
use psb_util_mod
|
||||
type(psb_zspmat_type) :: a
|
||||
|
||||
integer :: info
|
||||
integer(psb_ipk_) :: info
|
||||
character(len=72) :: mtitle
|
||||
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ program zmm2hb
|
||||
use psb_util_mod
|
||||
type(psb_zspmat_type) :: a
|
||||
|
||||
integer info
|
||||
integer(psb_ipk_) :: info
|
||||
|
||||
call mm_mat_read(a,info)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user