Corrected routine for weighted masked 2norm

merge-paraggr-newops
Cirdans-Home 5 years ago
parent 9e9a2e3975
commit 0f309850cc

@ -1030,7 +1030,7 @@ contains
integer(psb_ipk_) :: info
if (allocated(x%v).and.allocated(w%v).and.allocated(id%v)) then
call w%v%acmp(id%v,szero,info)
where( abs(id%v%v) <= szero) x%v%v = szero
call w%v%mlt(x%v,info)
res = w%v%nrm2(n)
else

@ -1037,7 +1037,7 @@ contains
integer(psb_ipk_) :: info
if (allocated(x%v).and.allocated(w%v).and.allocated(id%v)) then
call w%v%acmp(id%v,dzero,info)
where( abs(id%v%v) <= dzero) x%v%v = dzero
call w%v%mlt(x%v,info)
res = w%v%nrm2(n)
else

@ -1037,7 +1037,7 @@ contains
integer(psb_ipk_) :: info
if (allocated(x%v).and.allocated(w%v).and.allocated(id%v)) then
call w%v%acmp(id%v,szero,info)
where( abs(id%v%v) <= szero) x%v%v = szero
call w%v%mlt(x%v,info)
res = w%v%nrm2(n)
else

@ -1030,7 +1030,7 @@ contains
integer(psb_ipk_) :: info
if (allocated(x%v).and.allocated(w%v).and.allocated(id%v)) then
call w%v%acmp(id%v,dzero,info)
where( abs(id%v%v) <= dzero) x%v%v = dzero
call w%v%mlt(x%v,info)
res = w%v%nrm2(n)
else

Loading…
Cancel
Save