diff --git a/src/prec/psb_dbaseprc_bld.f90 b/src/prec/psb_dbaseprc_bld.f90 index 2e206a87..d5a9cd92 100644 --- a/src/prec/psb_dbaseprc_bld.f90 +++ b/src/prec/psb_dbaseprc_bld.f90 @@ -86,7 +86,7 @@ subroutine psb_dbaseprc_bld(a,desc_a,p,info,upd) use psb_const_mod implicit none - type(psb_dspmat_type), intent(in) :: a + type(psb_dspmat_type), intent(inout) :: a type(psb_desc_type), intent(in) :: desc_a type(psb_dbaseprc_type), intent(inout) :: p integer, intent(out) :: info @@ -101,7 +101,7 @@ subroutine psb_dbaseprc_bld(a,desc_a,p,info,upd) use psb_const_mod implicit none - type(psb_dspmat_type), intent(in) :: a + type(psb_dspmat_type), intent(inout) :: a type(psb_desc_type), intent(in) :: desc_a type(psb_dbaseprc_type), intent(inout) :: p integer, intent(out) :: info @@ -194,13 +194,14 @@ subroutine psb_dbaseprc_bld(a,desc_a,p,info,upd) & f_ilu_n_,is_legal_ml_fact) if (debug) write(0,*)me, ': Calling PSB_ILU_BLD' - + if (debug) call blacs_barrier(icontxt,'All') select case(p%iprcparm(f_type_)) case(f_ilu_n_,f_ilu_e_) call psb_ilu_bld(a,desc_a,p,iupd,info) if(debug) write(0,*)me,': out of psb_ilu_bld' + if (debug) call blacs_barrier(icontxt,'All') if(info /= 0) then info=4010 ch_err='psb_ilu_bld' diff --git a/src/prec/psb_dilu_bld.f90 b/src/prec/psb_dilu_bld.f90 index f543f4dd..bc9c9770 100644 --- a/src/prec/psb_dilu_bld.f90 +++ b/src/prec/psb_dilu_bld.f90 @@ -160,6 +160,7 @@ subroutine psb_dilu_bld(a,desc_a,p,upd,info) t1= mpi_wtime() if(debug) write(0,*)me,': calling psb_asmatbld',p%iprcparm(p_type_),p%iprcparm(n_ovr_) + if (debug) call blacs_barrier(icontxt,'All') call psb_asmatbld(p%iprcparm(p_type_),p%iprcparm(n_ovr_),a,& & blck,desc_a,upd,p%desc_data,info) if(info/=0) then @@ -169,7 +170,8 @@ subroutine psb_dilu_bld(a,desc_a,p,upd,info) goto 9999 end if t2= mpi_wtime() - if(debug) write(0,*)me,': out of psb_asmatbld' + if (debug) write(0,*)me,': out of psb_asmatbld' + if (debug) call blacs_barrier(icontxt,'All') if (associated(p%av)) then if (size(p%av) < bp_ilu_avsz) then @@ -189,6 +191,9 @@ subroutine psb_dilu_bld(a,desc_a,p,upd,info) call psb_errpush(info,name,a_err=ch_err) goto 9999 end if + if (debug) write(0,*)me,': out spinfo',nztota + if (debug) call blacs_barrier(icontxt,'All') + n_col = desc_a%matrix_data(psb_n_col_) nhalo = n_col-nrow_a n_row = p%desc_data%matrix_data(psb_n_row_) @@ -198,7 +203,7 @@ subroutine psb_dilu_bld(a,desc_a,p,upd,info) p%av(u_pr_)%m = n_row p%av(u_pr_)%k = n_row call psb_sp_all(n_row,n_row,p%av(l_pr_),nztota+lovr,info) - call psb_sp_all(n_row,n_row,p%av(u_pr_),nztota+lovr,info) + if (info == 0) call psb_sp_all(n_row,n_row,p%av(u_pr_),nztota+lovr,info) if(info/=0) then info=4010 ch_err='psb_sp_all' @@ -305,6 +310,7 @@ subroutine psb_dilu_bld(a,desc_a,p,upd,info) t5= mpi_wtime() if (debug) write(0,*) me,' Going for dilu_fct' + if (debug) call blacs_barrier(icontxt,'All') call psb_ilu_fct(a,p%av(l_pr_),p%av(u_pr_),p%d,info,blck=blck) if(info/=0) then info=4010 diff --git a/src/prec/psb_dprecbld.f90 b/src/prec/psb_dprecbld.f90 index 5eb448f1..707345d9 100644 --- a/src/prec/psb_dprecbld.f90 +++ b/src/prec/psb_dprecbld.f90 @@ -87,7 +87,7 @@ subroutine psb_dprecbld(a,desc_a,p,info,upd) integer :: int_err(5) character :: iupd - logical, parameter :: debug=.false. + logical, parameter :: debug=.false. integer,parameter :: iroot=0,iout=60,ilout=40 character(len=20) :: name, ch_err diff --git a/src/prec/psb_dslu_bld.f90 b/src/prec/psb_dslu_bld.f90 index 8e991736..76a6fb0d 100644 --- a/src/prec/psb_dslu_bld.f90 +++ b/src/prec/psb_dslu_bld.f90 @@ -41,7 +41,7 @@ subroutine psb_dslu_bld(a,desc_a,p,info) use psb_const_mod implicit none - type(psb_dspmat_type), intent(in) :: a + type(psb_dspmat_type), intent(inout) :: a type(psb_desc_type), intent(in) :: desc_a type(psb_dbaseprc_type), intent(inout) :: p integer, intent(out) :: info diff --git a/src/prec/psb_dumf_bld.f90 b/src/prec/psb_dumf_bld.f90 index 486897ca..98d3fd4f 100644 --- a/src/prec/psb_dumf_bld.f90 +++ b/src/prec/psb_dumf_bld.f90 @@ -42,7 +42,7 @@ subroutine psb_dumf_bld(a,desc_a,p,info) use psb_const_mod implicit none - type(psb_dspmat_type), intent(in) :: a + type(psb_dspmat_type), intent(inout) :: a type(psb_desc_type), intent(in) :: desc_a type(psb_dbaseprc_type), intent(inout) :: p integer, intent(out) :: info @@ -69,7 +69,7 @@ subroutine psb_dumf_bld(a,desc_a,p,info) integer, intent(out) :: info character(len=5), optional :: outfmt end Subroutine psb_dasmatbld - end interface + end interface info=0 name='psb_umf_bld' @@ -84,118 +84,122 @@ subroutine psb_dumf_bld(a,desc_a,p,info) call psb_nullify_sp(atmp) atmp%fida='COO' if (Debug) then - write(0,*) me, 'UMFBLD: Calling csdp' - call blacs_barrier(icontxt,'All') + write(0,*) me, 'UMFBLD: Calling csdp' + call blacs_barrier(icontxt,'All') endif call psb_dcsdp(a,atmp,info) if(info /= 0) then - info=4010 - ch_err='psb_dcsdp' - call psb_errpush(info,name,a_err=ch_err) - goto 9999 + info=4010 + ch_err='psb_dcsdp' + call psb_errpush(info,name,a_err=ch_err) + goto 9999 end if call psb_spinfo(psb_nztotreq_,atmp,nza,info) if (Debug) then - write(0,*) me, 'UMFBLD: Done csdp',info,nza,atmp%m,atmp%k - call blacs_barrier(icontxt,'All') + call psb_spinfo(psb_nztotreq_,a,nzb,info) + write(0,*) me, 'UMFBLD: Done csdp',info,nza,atmp%m,atmp%k,nzb + call blacs_barrier(icontxt,'All') endif call psb_asmatbld(p%iprcparm(p_type_),p%iprcparm(n_ovr_),a,& & blck,desc_a,upd,p%desc_data,info,outfmt=fmt) if(info /= 0) then - info=4010 - ch_err='psb_asmatbld' - call psb_errpush(info,name,a_err=ch_err) - goto 9999 + info=4010 + ch_err='psb_asmatbld' + call psb_errpush(info,name,a_err=ch_err) + goto 9999 end if call psb_spinfo(psb_nztotreq_,blck,nzb,info) if (Debug) then - write(0,*) me, 'UMFBLD: Done asmatbld',info,nzb,blck%fida - call blacs_barrier(icontxt,'All') + write(0,*) me, 'UMFBLD: Done asmatbld',info,nzb,blck%fida + call blacs_barrier(icontxt,'All') endif if (nzb > 0 ) then - if (size(atmp%aspk)