Fix reinit

master
Salvatore Filippone 2 years ago
parent 7028cb656a
commit d4b6d4dfa1

@ -537,7 +537,6 @@ subroutine psb_c_coo_reinit(a,clear)
if (a%is_dev()) call a%sync() if (a%is_dev()) call a%sync()
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = czero if (clear_) a%val(:) = czero
call a%set_host() call a%set_host()

@ -2588,7 +2588,6 @@ subroutine psb_c_csc_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = czero if (clear_) a%val(:) = czero
call a%set_upd() call a%set_upd()

@ -2722,7 +2722,6 @@ subroutine psb_c_csr_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = czero if (clear_) a%val(:) = czero
call a%set_upd() call a%set_upd()

@ -537,7 +537,6 @@ subroutine psb_d_coo_reinit(a,clear)
if (a%is_dev()) call a%sync() if (a%is_dev()) call a%sync()
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = dzero if (clear_) a%val(:) = dzero
call a%set_host() call a%set_host()

@ -2588,7 +2588,6 @@ subroutine psb_d_csc_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = dzero if (clear_) a%val(:) = dzero
call a%set_upd() call a%set_upd()

@ -2722,7 +2722,6 @@ subroutine psb_d_csr_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = dzero if (clear_) a%val(:) = dzero
call a%set_upd() call a%set_upd()

@ -537,7 +537,6 @@ subroutine psb_s_coo_reinit(a,clear)
if (a%is_dev()) call a%sync() if (a%is_dev()) call a%sync()
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = szero if (clear_) a%val(:) = szero
call a%set_host() call a%set_host()

@ -2588,7 +2588,6 @@ subroutine psb_s_csc_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = szero if (clear_) a%val(:) = szero
call a%set_upd() call a%set_upd()

@ -2722,7 +2722,6 @@ subroutine psb_s_csr_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = szero if (clear_) a%val(:) = szero
call a%set_upd() call a%set_upd()

@ -537,7 +537,6 @@ subroutine psb_z_coo_reinit(a,clear)
if (a%is_dev()) call a%sync() if (a%is_dev()) call a%sync()
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = zzero if (clear_) a%val(:) = zzero
call a%set_host() call a%set_host()

@ -2588,7 +2588,6 @@ subroutine psb_z_csc_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = zzero if (clear_) a%val(:) = zzero
call a%set_upd() call a%set_upd()

@ -2722,7 +2722,6 @@ subroutine psb_z_csr_reinit(a,clear)
if (a%is_bld() .or. a%is_upd()) then if (a%is_bld() .or. a%is_upd()) then
! do nothing ! do nothing
return
else if (a%is_asb()) then else if (a%is_asb()) then
if (clear_) a%val(:) = zzero if (clear_) a%val(:) = zzero
call a%set_upd() call a%set_upd()

Loading…
Cancel
Save