Added average for the (unlikely) case of an overlap in the base data distribution.

stopcriterion
Salvatore Filippone 17 years ago
parent 91f3925682
commit e1700c63d1

@ -99,7 +99,7 @@ subroutine mld_dprec_aply(prec,x,y,desc_data,info,trans,work)
call psb_info(ictxt, me, np) call psb_info(ictxt, me, np)
if (present(trans)) then if (present(trans)) then
trans_=trans trans_=toupper(trans)
else else
trans_='N' trans_='N'
end if end if
@ -139,6 +139,10 @@ subroutine mld_dprec_aply(prec,x,y,desc_data,info,trans,work)
goto 9999 goto 9999
endif endif
! If the original distribution has an overlap we should fix that.
call psb_ovrl(y,desc_data,info,update=psb_avg_)
if (present(work)) then if (present(work)) then
else else
deallocate(work_) deallocate(work_)

@ -99,7 +99,7 @@ subroutine mld_zprec_aply(prec,x,y,desc_data,info,trans,work)
call psb_info(ictxt, me, np) call psb_info(ictxt, me, np)
if (present(trans)) then if (present(trans)) then
trans_=trans trans_=toupper(trans)
else else
trans_='N' trans_='N'
end if end if
@ -139,6 +139,9 @@ subroutine mld_zprec_aply(prec,x,y,desc_data,info,trans,work)
goto 9999 goto 9999
endif endif
! If the original distribution has an overlap we should fix that.
call psb_ovrl(y,desc_data,info,update=psb_avg_)
if (present(work)) then if (present(work)) then
else else
deallocate(work_) deallocate(work_)

Loading…
Cancel
Save