Fix use of defaults for min_coarse_size_per_process

documentation
Salvatore Filippone 4 years ago
parent f23df4cb48
commit c51414f7ab

@ -199,8 +199,10 @@ subroutine amg_c_hierarchy_bld(a,desc_a,prec,info)
! coarse size is hit, or the gain falls below the min_cr_ratio ! coarse size is hit, or the gain falls below the min_cr_ratio
! threshold. ! threshold.
! !
if ((mncszpp < 0).and.(mncsize<0)) mncszpp = 200 if ((mncszpp < 0).and.(mncsize<0)) then
mncszpp = 200
prec%ag_data%min_coarse_size_per_process = mncszpp
end if
if (mncszpp > 0) then if (mncszpp > 0) then
casize = mncszpp*np casize = mncszpp*np
if (casize > huge(ione)) casize = huge(ione) if (casize > huge(ione)) casize = huge(ione)

@ -199,8 +199,10 @@ subroutine amg_d_hierarchy_bld(a,desc_a,prec,info)
! coarse size is hit, or the gain falls below the min_cr_ratio ! coarse size is hit, or the gain falls below the min_cr_ratio
! threshold. ! threshold.
! !
if ((mncszpp < 0).and.(mncsize<0)) mncszpp = 200 if ((mncszpp < 0).and.(mncsize<0)) then
mncszpp = 200
prec%ag_data%min_coarse_size_per_process = mncszpp
end if
if (mncszpp > 0) then if (mncszpp > 0) then
casize = mncszpp*np casize = mncszpp*np
if (casize > huge(ione)) casize = huge(ione) if (casize > huge(ione)) casize = huge(ione)

@ -199,8 +199,10 @@ subroutine amg_s_hierarchy_bld(a,desc_a,prec,info)
! coarse size is hit, or the gain falls below the min_cr_ratio ! coarse size is hit, or the gain falls below the min_cr_ratio
! threshold. ! threshold.
! !
if ((mncszpp < 0).and.(mncsize<0)) mncszpp = 200 if ((mncszpp < 0).and.(mncsize<0)) then
mncszpp = 200
prec%ag_data%min_coarse_size_per_process = mncszpp
end if
if (mncszpp > 0) then if (mncszpp > 0) then
casize = mncszpp*np casize = mncszpp*np
if (casize > huge(ione)) casize = huge(ione) if (casize > huge(ione)) casize = huge(ione)

@ -199,8 +199,10 @@ subroutine amg_z_hierarchy_bld(a,desc_a,prec,info)
! coarse size is hit, or the gain falls below the min_cr_ratio ! coarse size is hit, or the gain falls below the min_cr_ratio
! threshold. ! threshold.
! !
if ((mncszpp < 0).and.(mncsize<0)) mncszpp = 200 if ((mncszpp < 0).and.(mncsize<0)) then
mncszpp = 200
prec%ag_data%min_coarse_size_per_process = mncszpp
end if
if (mncszpp > 0) then if (mncszpp > 0) then
casize = mncszpp*np casize = mncszpp*np
if (casize > huge(ione)) casize = huge(ione) if (casize > huge(ione)) casize = huge(ione)

Loading…
Cancel
Save