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

the solver use of amgcl #276

Open
gujintian1 opened this issue Jul 1, 2024 · 2 comments
Open

the solver use of amgcl #276

gujintian1 opened this issue Jul 1, 2024 · 2 comments

Comments

@gujintian1
Copy link

Hello! For AMGCL, if the positions of the non-zero elements in the coefficient matrix A remain unchanged and only the values of the non-zero elements change with each use of the solver, how can one create a solver only once and subsequently update only the values of the non-zero elements in the coefficient matrix A?

@ddemidov
Copy link
Owner

ddemidov commented Jul 1, 2024

You could try to use amg::rebuild() method. It requires prm.allow_rebuild set, and propagates the new matrix values down the amg hierarchy.

@gujintian1
Copy link
Author

Thank you very much!

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

No branches or pull requests

2 participants