Fix GEMIN

parflow
sfilippone 2 months ago
parent 586cafae49
commit 1cb7634d1f

@ -689,11 +689,11 @@ function psb_dmin_vect(x, desc_a, info,global) result(res)
goto 9999 goto 9999
end if end if
! compute local max ! compute local min
if ((desc_a%get_local_rows() > 0).and.(m /= 0)) then if ((desc_a%get_local_rows() > 0).and.(m /= 0)) then
res = x%minreal(desc_a%get_local_rows()) res = x%minreal(desc_a%get_local_rows())
else else
res = dzero res = HUGE(done)
end if end if
! compute global min ! compute global min

@ -689,11 +689,11 @@ function psb_smin_vect(x, desc_a, info,global) result(res)
goto 9999 goto 9999
end if end if
! compute local max ! compute local min
if ((desc_a%get_local_rows() > 0).and.(m /= 0)) then if ((desc_a%get_local_rows() > 0).and.(m /= 0)) then
res = x%minreal(desc_a%get_local_rows()) res = x%minreal(desc_a%get_local_rows())
else else
res = szero res = HUGE(sone)
end if end if
! compute global min ! compute global min

Loading…
Cancel
Save