mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-19 20:32:12 +00:00
FIx vect%cnv on unallocated internals
This commit is contained in:
@@ -526,9 +526,11 @@ contains
|
||||
allocate(tmp,stat=info,mold=psb_c_get_base_vect_default())
|
||||
end if
|
||||
if (allocated(x%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
if (allocated(x%v%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
endif
|
||||
end if
|
||||
call move_alloc(tmp,x%v)
|
||||
|
||||
|
||||
@@ -533,9 +533,11 @@ contains
|
||||
allocate(tmp,stat=info,mold=psb_d_get_base_vect_default())
|
||||
end if
|
||||
if (allocated(x%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
if (allocated(x%v%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
endif
|
||||
end if
|
||||
call move_alloc(tmp,x%v)
|
||||
|
||||
|
||||
@@ -473,9 +473,11 @@ contains
|
||||
allocate(tmp,stat=info,mold=psb_i_get_base_vect_default())
|
||||
end if
|
||||
if (allocated(x%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
if (allocated(x%v%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
endif
|
||||
end if
|
||||
call move_alloc(tmp,x%v)
|
||||
|
||||
|
||||
@@ -474,9 +474,11 @@ contains
|
||||
allocate(tmp,stat=info,mold=psb_l_get_base_vect_default())
|
||||
end if
|
||||
if (allocated(x%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
if (allocated(x%v%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
endif
|
||||
end if
|
||||
call move_alloc(tmp,x%v)
|
||||
|
||||
|
||||
@@ -533,9 +533,11 @@ contains
|
||||
allocate(tmp,stat=info,mold=psb_s_get_base_vect_default())
|
||||
end if
|
||||
if (allocated(x%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
if (allocated(x%v%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
endif
|
||||
end if
|
||||
call move_alloc(tmp,x%v)
|
||||
|
||||
|
||||
@@ -526,9 +526,11 @@ contains
|
||||
allocate(tmp,stat=info,mold=psb_z_get_base_vect_default())
|
||||
end if
|
||||
if (allocated(x%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
if (allocated(x%v%v)) then
|
||||
call x%v%sync()
|
||||
if (info == psb_success_) call tmp%bld(x%v%v)
|
||||
call x%v%free(info)
|
||||
endif
|
||||
end if
|
||||
call move_alloc(tmp,x%v)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user