|
|
@ -909,7 +909,7 @@ contains
|
|
|
|
!....parameters...
|
|
|
|
!....parameters...
|
|
|
|
|
|
|
|
|
|
|
|
class(psb_desc_type), intent(inout), target :: desc
|
|
|
|
class(psb_desc_type), intent(inout), target :: desc
|
|
|
|
class(psb_desc_type), intent(out) :: desc_out
|
|
|
|
class(psb_desc_type), intent(inout) :: desc_out
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
integer(psb_ipk_), intent(out) :: info
|
|
|
|
!locals
|
|
|
|
!locals
|
|
|
|
integer(psb_ipk_) :: np,me,ictxt, err_act
|
|
|
|
integer(psb_ipk_) :: np,me,ictxt, err_act
|
|
|
@ -924,6 +924,7 @@ contains
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
call psb_erractionsave(err_act)
|
|
|
|
name = 'psb_cdcpy'
|
|
|
|
name = 'psb_cdcpy'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (desc%is_valid()) then
|
|
|
|
ictxt = desc%get_context()
|
|
|
|
ictxt = desc%get_context()
|
|
|
|
|
|
|
|
|
|
|
|
! check on blacs grid
|
|
|
|
! check on blacs grid
|
|
|
@ -937,18 +938,28 @@ contains
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
desc_out%base_desc => desc%base_desc
|
|
|
|
desc_out%base_desc => desc%base_desc
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%halo_index,desc_out%halo_index,info)
|
|
|
|
if (info == psb_success_)&
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%ext_index,desc_out%ext_index,info)
|
|
|
|
& call psb_safe_ab_cpy(desc%halo_index,desc_out%halo_index,info)
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%ovrlap_index,&
|
|
|
|
if (info == psb_success_)&
|
|
|
|
|
|
|
|
& call psb_safe_ab_cpy(desc%ext_index,desc_out%ext_index,info)
|
|
|
|
|
|
|
|
if (info == psb_success_)&
|
|
|
|
|
|
|
|
& call psb_safe_ab_cpy(desc%ovrlap_index,&
|
|
|
|
& desc_out%ovrlap_index,info)
|
|
|
|
& desc_out%ovrlap_index,info)
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%bnd_elem,desc_out%bnd_elem,info)
|
|
|
|
if (info == psb_success_)&
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%ovrlap_elem,desc_out%ovrlap_elem,info)
|
|
|
|
& call psb_safe_ab_cpy(desc%bnd_elem,desc_out%bnd_elem,info)
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%ovr_mst_idx,desc_out%ovr_mst_idx,info)
|
|
|
|
if (info == psb_success_)&
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%lprm,desc_out%lprm,info)
|
|
|
|
& call psb_safe_ab_cpy(desc%ovrlap_elem,desc_out%ovrlap_elem,info)
|
|
|
|
if (info == psb_success_) call psb_safe_ab_cpy(desc%idx_space,desc_out%idx_space,info)
|
|
|
|
if (info == psb_success_)&
|
|
|
|
|
|
|
|
& call psb_safe_ab_cpy(desc%ovr_mst_idx,desc_out%ovr_mst_idx,info)
|
|
|
|
|
|
|
|
if (info == psb_success_)&
|
|
|
|
|
|
|
|
& call psb_safe_ab_cpy(desc%lprm,desc_out%lprm,info)
|
|
|
|
|
|
|
|
if (info == psb_success_)&
|
|
|
|
|
|
|
|
& call psb_safe_ab_cpy(desc%idx_space,desc_out%idx_space,info)
|
|
|
|
if ((info == psb_success_).and.(allocated(desc%indxmap))) &
|
|
|
|
if ((info == psb_success_).and.(allocated(desc%indxmap))) &
|
|
|
|
& call desc%indxmap%clone(desc_out%indxmap,info)
|
|
|
|
& call desc%indxmap%clone(desc_out%indxmap,info)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
call desc_out%free(info)
|
|
|
|
|
|
|
|
end if
|
|
|
|
if (info /= psb_success_) then
|
|
|
|
if (info /= psb_success_) then
|
|
|
|
info = psb_err_from_subroutine_
|
|
|
|
info = psb_err_from_subroutine_
|
|
|
|
call psb_errpush(info,name)
|
|
|
|
call psb_errpush(info,name)
|
|
|
|