Fixed init_heap in copyin.

stopcriterion
Salvatore Filippone 17 years ago
parent aaa7acf94b
commit 8626133d04

@ -265,6 +265,7 @@ contains
if (psb_get_errstatus() /= 0) return if (psb_get_errstatus() /= 0) return
info=0 info=0
call psb_erractionsave(err_act) call psb_erractionsave(err_act)
call psb_init_heap(heap,info)
! !
! Here we take a fast shortcut if possible, otherwise ! Here we take a fast shortcut if possible, otherwise
@ -272,7 +273,6 @@ contains
! anything. ! anything.
! !
if (toupper(a%fida)=='CSR') then if (toupper(a%fida)=='CSR') then
call psb_init_heap(heap,info)
do j = a%ia2(i), a%ia2(i+1) - 1 do j = a%ia2(i), a%ia2(i+1) - 1
k = a%ia1(j) k = a%ia1(j)

@ -268,6 +268,7 @@ contains
if (psb_get_errstatus() /= 0) return if (psb_get_errstatus() /= 0) return
info=0 info=0
call psb_erractionsave(err_act) call psb_erractionsave(err_act)
call psb_init_heap(heap,info)
! !
! nrmi is the norm of the current sparse row. ! nrmi is the norm of the current sparse row.
@ -282,7 +283,6 @@ contains
dmaxup = dzero dmaxup = dzero
nrmi = dzero nrmi = dzero
if (toupper(a%fida)=='CSR') then if (toupper(a%fida)=='CSR') then
call psb_init_heap(heap,info)
do j = a%ia2(i), a%ia2(i+1) - 1 do j = a%ia2(i), a%ia2(i+1) - 1
k = a%ia1(j) k = a%ia1(j)
if ((jmin<=k).and.(k<=jmax)) then if ((jmin<=k).and.(k<=jmax)) then

@ -264,6 +264,7 @@ contains
if (psb_get_errstatus() /= 0) return if (psb_get_errstatus() /= 0) return
info=0 info=0
call psb_erractionsave(err_act) call psb_erractionsave(err_act)
call psb_init_heap(heap,info)
! !
! Here we take a fast shortcut if possible, otherwise ! Here we take a fast shortcut if possible, otherwise
@ -271,7 +272,6 @@ contains
! anything. ! anything.
! !
if (toupper(a%fida)=='CSR') then if (toupper(a%fida)=='CSR') then
call psb_init_heap(heap,info)
do j = a%ia2(i), a%ia2(i+1) - 1 do j = a%ia2(i), a%ia2(i+1) - 1
k = a%ia1(j) k = a%ia1(j)

@ -269,6 +269,7 @@ contains
if (psb_get_errstatus() /= 0) return if (psb_get_errstatus() /= 0) return
info=0 info=0
call psb_erractionsave(err_act) call psb_erractionsave(err_act)
call psb_init_heap(heap,info)
! !
! nrmi is the norm of the current sparse row. ! nrmi is the norm of the current sparse row.
@ -283,7 +284,6 @@ contains
dmaxup = dzero dmaxup = dzero
nrmi = dzero nrmi = dzero
if (toupper(a%fida)=='CSR') then if (toupper(a%fida)=='CSR') then
call psb_init_heap(heap,info)
do j = a%ia2(i), a%ia2(i+1) - 1 do j = a%ia2(i), a%ia2(i+1) - 1
k = a%ia1(j) k = a%ia1(j)
if ((jmin<=k).and.(k<=jmax)) then if ((jmin<=k).and.(k<=jmax)) then

Loading…
Cancel
Save