Avoid overflow in bnds()

l1aggregation
sfilippone 8 months ago
parent 15bb4ac101
commit 0f3c3380cb

@ -310,7 +310,7 @@ subroutine amg_d_soc2_map_bld(iorder,theta,clean_zeros,a,desc_a,nlaggr,ilaggr,in
if (disjoint) then if (disjoint) then
locnaggr(kk) = locnaggr(kk) + 1 locnaggr(kk) = locnaggr(kk) + 1
itmp = (bnds(kk)-1+locnaggr(kk))*nths+kk itmp = (bnds(kk)-1+locnaggr(kk))*nths+kk
if (itmp < (bnds(kk)-1+locnaggr(kk))) then if (itmp < (bnds(kk)-1_psb_lpk_+locnaggr(kk))) then
!$omp atomic update !$omp atomic update
info = max(12345678,info) info = max(12345678,info)
!$omp end atomic !$omp end atomic

Loading…
Cancel
Save