Skip to content

Commit

Permalink
Fix silly bug in aggrmat_smth_asb eigenvalue estimate.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfilippone committed Dec 13, 2018
1 parent f2f760f commit 87c1f83
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 32 deletions.
10 changes: 2 additions & 8 deletions mlprec/impl/aggregator/mld_caggrmat_smth_asb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@
! specified by the user through mld_cprecinit and mld_zprecset.
! On output from this routine the entries of AC, op_prol, op_restr
! are still in "global numbering" mode; this is fixed in the calling routine
! mld_c_lev_aggrmat_asb.
!
! For more details see
! M. Brezina and P. Vanek, A black-box iterative solver based on a
! two-level Schwarz method, Computing, 63 (1999), 233-263.
! P. D'Ambra, D. di Serafino and S. Filippone, On the development of
! PSBLAS-based parallel two-level Schwarz preconditioners, Appl. Num. Math.
! 57 (2007), 1181-1196.
! aggregator%mat_asb.
!
!
! Arguments:
Expand Down Expand Up @@ -238,6 +231,7 @@ subroutine mld_caggrmat_smth_asb(a,desc_a,ilaggr,nlaggr,parms,ac,op_prol,op_rest
if (parms%aggr_eig == mld_max_norm_) then

anorm = acsr3%spnmi()
call psb_amx(ictxt,anorm)
omega = 4.d0/(3.d0*anorm)
parms%aggr_omega_val = omega

Expand Down
10 changes: 2 additions & 8 deletions mlprec/impl/aggregator/mld_daggrmat_smth_asb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@
! specified by the user through mld_dprecinit and mld_zprecset.
! On output from this routine the entries of AC, op_prol, op_restr
! are still in "global numbering" mode; this is fixed in the calling routine
! mld_d_lev_aggrmat_asb.
!
! For more details see
! M. Brezina and P. Vanek, A black-box iterative solver based on a
! two-level Schwarz method, Computing, 63 (1999), 233-263.
! P. D'Ambra, D. di Serafino and S. Filippone, On the development of
! PSBLAS-based parallel two-level Schwarz preconditioners, Appl. Num. Math.
! 57 (2007), 1181-1196.
! aggregator%mat_asb.
!
!
! Arguments:
Expand Down Expand Up @@ -238,6 +231,7 @@ subroutine mld_daggrmat_smth_asb(a,desc_a,ilaggr,nlaggr,parms,ac,op_prol,op_rest
if (parms%aggr_eig == mld_max_norm_) then

anorm = acsr3%spnmi()
call psb_amx(ictxt,anorm)
omega = 4.d0/(3.d0*anorm)
parms%aggr_omega_val = omega

Expand Down
10 changes: 2 additions & 8 deletions mlprec/impl/aggregator/mld_saggrmat_smth_asb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@
! specified by the user through mld_sprecinit and mld_zprecset.
! On output from this routine the entries of AC, op_prol, op_restr
! are still in "global numbering" mode; this is fixed in the calling routine
! mld_s_lev_aggrmat_asb.
!
! For more details see
! M. Brezina and P. Vanek, A black-box iterative solver based on a
! two-level Schwarz method, Computing, 63 (1999), 233-263.
! P. D'Ambra, D. di Serafino and S. Filippone, On the development of
! PSBLAS-based parallel two-level Schwarz preconditioners, Appl. Num. Math.
! 57 (2007), 1181-1196.
! aggregator%mat_asb.
!
!
! Arguments:
Expand Down Expand Up @@ -238,6 +231,7 @@ subroutine mld_saggrmat_smth_asb(a,desc_a,ilaggr,nlaggr,parms,ac,op_prol,op_rest
if (parms%aggr_eig == mld_max_norm_) then

anorm = acsr3%spnmi()
call psb_amx(ictxt,anorm)
omega = 4.d0/(3.d0*anorm)
parms%aggr_omega_val = omega

Expand Down
10 changes: 2 additions & 8 deletions mlprec/impl/aggregator/mld_zaggrmat_smth_asb.f90
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@
! specified by the user through mld_zprecinit and mld_zprecset.
! On output from this routine the entries of AC, op_prol, op_restr
! are still in "global numbering" mode; this is fixed in the calling routine
! mld_z_lev_aggrmat_asb.
!
! For more details see
! M. Brezina and P. Vanek, A black-box iterative solver based on a
! two-level Schwarz method, Computing, 63 (1999), 233-263.
! P. D'Ambra, D. di Serafino and S. Filippone, On the development of
! PSBLAS-based parallel two-level Schwarz preconditioners, Appl. Num. Math.
! 57 (2007), 1181-1196.
! aggregator%mat_asb.
!
!
! Arguments:
Expand Down Expand Up @@ -238,6 +231,7 @@ subroutine mld_zaggrmat_smth_asb(a,desc_a,ilaggr,nlaggr,parms,ac,op_prol,op_rest
if (parms%aggr_eig == mld_max_norm_) then

anorm = acsr3%spnmi()
call psb_amx(ictxt,anorm)
omega = 4.d0/(3.d0*anorm)
parms%aggr_omega_val = omega

Expand Down

0 comments on commit 87c1f83

Please sign in to comment.