Skip to content

Add aggressive coarsening + second step to RugeStuben for AMG + some other options - #369

Merged
moyner merged 8 commits into
mainfrom
amg-updates
Oct 6, 2026
Merged

moyner merged 8 commits into
mainfrom
amg-updates

Conversation

@moyner

@moyner moyner commented Oct 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

Runic

[Runic] reported by reviewdog 🐶

scaled = setup_amg(csr_matrix(scale*A; backend), options)


[Runic] reported by reviewdog 🐶

resetup_amg!(H, csr_matrix(scale*A; backend), :sparsity)


[Runic] reported by reviewdog 🐶

B = A + spdiagm(0 => [0.2 + 0.1*sin(i) for i in 1:size(A, 1)])


[Runic] reported by reviewdog 🐶

interpolation = TwoStageExtendedIInterpolation(max_elements = 2,
stage_max_elements = 2, rescale = rescale)
options = AMGOptions(aggressive_levels = 1, aggressive_interpolation = interpolation,
coarse_size = 1, max_levels = 2)


[Runic] reported by reviewdog 🐶


[Runic] reported by reviewdog 🐶

@test_throws ArgumentError setup_amg(poisson_2d(3),
AMGOptions(interpolation = TwoStageExtendedIInterpolation()))


[Runic] reported by reviewdog 🐶

@test all(i -> aggressive.levels[1].P.rowptr[i + 1] >
aggressive.levels[1].P.rowptr[i], 1:size(A, 1))

@moyner
moyner merged commit 61382a1 into main Oct 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant