base/serial/impl/psb_c_csc_impl.f90
 base/serial/impl/psb_d_csc_impl.f90
 base/serial/impl/psb_s_csc_impl.f90
 base/serial/impl/psb_z_csc_impl.f90

Fix early return from getptn and getrow.
psblas-3.2.0
Salvatore Filippone 11 years ago
parent a8e020240b
commit 2e75193112

@ -1615,7 +1615,10 @@ subroutine psb_c_csc_csgetptn(imin,imax,a,nz,ia,ja,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append
@ -1805,7 +1808,11 @@ subroutine psb_c_csc_csgetrow(imin,imax,a,nz,ia,ja,val,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return
if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append

@ -1615,7 +1615,10 @@ subroutine psb_d_csc_csgetptn(imin,imax,a,nz,ia,ja,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append
@ -1805,7 +1808,11 @@ subroutine psb_d_csc_csgetrow(imin,imax,a,nz,ia,ja,val,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return
if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append

@ -1615,7 +1615,10 @@ subroutine psb_s_csc_csgetptn(imin,imax,a,nz,ia,ja,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append
@ -1805,7 +1808,11 @@ subroutine psb_s_csc_csgetrow(imin,imax,a,nz,ia,ja,val,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return
if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append

@ -1615,7 +1615,10 @@ subroutine psb_z_csc_csgetptn(imin,imax,a,nz,ia,ja,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append
@ -1805,7 +1808,11 @@ subroutine psb_z_csc_csgetrow(imin,imax,a,nz,ia,ja,val,info,&
jmax_ = a%get_ncols() jmax_ = a%get_ncols()
endif endif
if ((imax<imin).or.(jmax_<jmin_)) return
if ((imax<imin).or.(jmax_<jmin_)) then
nz = 0
return
end if
if (present(append)) then if (present(append)) then
append_=append append_=append

Loading…
Cancel
Save