Fix check on association of descriptor pointer

unify_aggr_bld
Salvatore Filippone 5 years ago
parent 8f73ddfbce
commit ce0850f6fc

@ -443,7 +443,7 @@ subroutine mld_c_hierarchy_bld(a,desc_a,prec,info)
iszv = newsz iszv = newsz
! Fix the pointers, but the level 1 should ! Fix the pointers, but the level 1 should
! be treated differently ! be treated differently
if (.not.associated(prec%precv(i)%base_desc,desc_a)) then if (.not.associated(prec%precv(1)%base_desc,desc_a)) then
prec%precv(1)%base_desc => prec%precv(1)%desc_ac prec%precv(1)%base_desc => prec%precv(1)%desc_ac
end if end if
do i=2, iszv do i=2, iszv

@ -443,7 +443,7 @@ subroutine mld_d_hierarchy_bld(a,desc_a,prec,info)
iszv = newsz iszv = newsz
! Fix the pointers, but the level 1 should ! Fix the pointers, but the level 1 should
! be treated differently ! be treated differently
if (.not.associated(prec%precv(i)%base_desc,desc_a)) then if (.not.associated(prec%precv(1)%base_desc,desc_a)) then
prec%precv(1)%base_desc => prec%precv(1)%desc_ac prec%precv(1)%base_desc => prec%precv(1)%desc_ac
end if end if
do i=2, iszv do i=2, iszv

@ -443,7 +443,7 @@ subroutine mld_s_hierarchy_bld(a,desc_a,prec,info)
iszv = newsz iszv = newsz
! Fix the pointers, but the level 1 should ! Fix the pointers, but the level 1 should
! be treated differently ! be treated differently
if (.not.associated(prec%precv(i)%base_desc,desc_a)) then if (.not.associated(prec%precv(1)%base_desc,desc_a)) then
prec%precv(1)%base_desc => prec%precv(1)%desc_ac prec%precv(1)%base_desc => prec%precv(1)%desc_ac
end if end if
do i=2, iszv do i=2, iszv

@ -443,7 +443,7 @@ subroutine mld_z_hierarchy_bld(a,desc_a,prec,info)
iszv = newsz iszv = newsz
! Fix the pointers, but the level 1 should ! Fix the pointers, but the level 1 should
! be treated differently ! be treated differently
if (.not.associated(prec%precv(i)%base_desc,desc_a)) then if (.not.associated(prec%precv(1)%base_desc,desc_a)) then
prec%precv(1)%base_desc => prec%precv(1)%desc_ac prec%precv(1)%base_desc => prec%precv(1)%desc_ac
end if end if
do i=2, iszv do i=2, iszv

Loading…
Cancel
Save