Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mode solver preconditioner improvement and turning off incidence matrix #1928

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

weiliangjin2021
Copy link
Collaborator

  • Disable incidence matrix
  • Enable left and right preconditioner to make sure in Ax= lambda M x, only eps^-1 and mu^-1 appear in A and M.

@weiliangjin2021 weiliangjin2021 marked this pull request as draft August 29, 2024 19:08
@weiliangjin2021 weiliangjin2021 marked this pull request as ready for review August 29, 2024 19:27
Copy link
Contributor

@caseyflex caseyflex left a comment

Choose a reason for hiding this comment

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

The improved preconditioning makes sense to me. Very nice fix!

@@ -22,6 +22,8 @@
TOL_TENSORIAL = 1e-6
# shift target neff by this value, both rel and abs, whichever results in larger shift
TARGET_SHIFT = 10 * fp_eps
# Preconditioner: "Jacobi" or "Material" based
PRECONDITIONER = "Material"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now I also include the previous preconditioning method (Jacobi) along with the new one. For non-magnetic material (mu=1 everywhere), the two are actually very similar. The new one performs better when both epsilon and mu can be huge.

@weiliangjin2021 weiliangjin2021 merged commit 8a20136 into pre/2.8 Sep 28, 2024
15 checks passed
@weiliangjin2021 weiliangjin2021 deleted the weiliang/mode_improvement branch September 28, 2024 17:45
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.

3 participants