Roll back unsafe change

fix-hash
Salvatore Filippone 1 year ago
parent aab29a4c55
commit e677d27418

@ -1115,12 +1115,13 @@ contains
cycle cycle
endif endif
ncol = idxmap%get_lc() ncol = idxmap%get_lc()
nxt = ncol + 1
call hash_inner_cnv(ip,lip,idxmap%hashvmask,idxmap%hashv,& call hash_inner_cnv(ip,lip,idxmap%hashvmask,idxmap%hashv,&
& idxmap%glb_lc,ncol) & idxmap%glb_lc,ncol)
if (lip < 0) then if (lip < 0) then
nxt = ncol + 1
call psb_hash_searchinskey(ip,tlip,nxt,idxmap%hash,info) call psb_hash_searchinskey(ip,tlip,nxt,idxmap%hash,info)
lip = tlip lip = tlip
end if
if (info >=0) then if (info >=0) then
if (nxt == lip) then if (nxt == lip) then
@ -1145,7 +1146,6 @@ contains
end if end if
idx(i) = lip idx(i) = lip
info = psb_success_ info = psb_success_
end if
else else
idx(i) = -1 idx(i) = -1
end if end if

Loading…
Cancel
Save