Add error handling after CDALL in samples

fix-hash
sfilippone 1 year ago
parent 503c1e575f
commit a3496d8cb5

@ -247,7 +247,6 @@ subroutine psb_cd_inloc(v, ctxt, desc, info, globalcheck,idx,usehash)
if (check_) then if (check_) then
! Sort, eliminate duplicates, then ! Sort, eliminate duplicates, then
! scramble back into original position. ! scramble back into original position.
ix(1) = -1
if (present(idx)) then if (present(idx)) then
if (size(idx) >= loc_row) then if (size(idx) >= loc_row) then
!$omp parallel do private(i) !$omp parallel do private(i)
@ -255,8 +254,7 @@ subroutine psb_cd_inloc(v, ctxt, desc, info, globalcheck,idx,usehash)
ix(i) = idx(i) ix(i) = idx(i)
end do end do
end if end if
end if else
if (ix(1) == -1) then
!$omp parallel do private(i) !$omp parallel do private(i)
do i=1, loc_row do i=1, loc_row
ix(i) = i ix(i) = i

@ -281,6 +281,7 @@ contains
! contiguous rows ! contiguous rows
! !
call psb_cdall(ctxt,desc_a,info,nl=nr) call psb_cdall(ctxt,desc_a,info,nl=nr)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -308,6 +309,7 @@ contains
! process that owns it ! process that owns it
! !
call psb_cdall(ctxt,desc_a,info,vg=iv) call psb_cdall(ctxt,desc_a,info,vg=iv)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -357,6 +359,7 @@ contains
! the set of global indices it owns. ! the set of global indices it owns.
! !
call psb_cdall(ctxt,desc_a,info,vl=myidx) call psb_cdall(ctxt,desc_a,info,vl=myidx)
if (info /=0) goto 9999
! !
! Specify process topology ! Specify process topology

@ -297,6 +297,7 @@ contains
! contiguous rows ! contiguous rows
! !
call psb_cdall(ctxt,desc_a,info,nl=nr) call psb_cdall(ctxt,desc_a,info,nl=nr)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -324,6 +325,7 @@ contains
! process that owns it ! process that owns it
! !
call psb_cdall(ctxt,desc_a,info,vg=iv) call psb_cdall(ctxt,desc_a,info,vg=iv)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -378,6 +380,7 @@ contains
! the set of global indices it owns. ! the set of global indices it owns.
! !
call psb_cdall(ctxt,desc_a,info,vl=myidx) call psb_cdall(ctxt,desc_a,info,vl=myidx)
if (info /=0) goto 9999
! !
! Specify process topology ! Specify process topology

@ -281,6 +281,7 @@ contains
! contiguous rows ! contiguous rows
! !
call psb_cdall(ctxt,desc_a,info,nl=nr) call psb_cdall(ctxt,desc_a,info,nl=nr)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -308,6 +309,7 @@ contains
! process that owns it ! process that owns it
! !
call psb_cdall(ctxt,desc_a,info,vg=iv) call psb_cdall(ctxt,desc_a,info,vg=iv)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -357,6 +359,7 @@ contains
! the set of global indices it owns. ! the set of global indices it owns.
! !
call psb_cdall(ctxt,desc_a,info,vl=myidx) call psb_cdall(ctxt,desc_a,info,vl=myidx)
if (info /=0) goto 9999
! !
! Specify process topology ! Specify process topology

@ -297,6 +297,7 @@ contains
! contiguous rows ! contiguous rows
! !
call psb_cdall(ctxt,desc_a,info,nl=nr) call psb_cdall(ctxt,desc_a,info,nl=nr)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -324,6 +325,7 @@ contains
! process that owns it ! process that owns it
! !
call psb_cdall(ctxt,desc_a,info,vg=iv) call psb_cdall(ctxt,desc_a,info,vg=iv)
if (info /=0) goto 9999
myidx = desc_a%get_global_indices() myidx = desc_a%get_global_indices()
nlr = size(myidx) nlr = size(myidx)
@ -378,6 +380,7 @@ contains
! the set of global indices it owns. ! the set of global indices it owns.
! !
call psb_cdall(ctxt,desc_a,info,vl=myidx) call psb_cdall(ctxt,desc_a,info,vl=myidx)
if (info /=0) goto 9999
! !
! Specify process topology ! Specify process topology

Loading…
Cancel
Save