ddemidov / amgcl

C++ library for solving large sparse linear systems with algebraic multigrid method
http://amgcl.readthedocs.org/
MIT License
722 stars 110 forks source link

the solver use of amgcl #276

Open gujintian1 opened 1 month ago

gujintian1 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

Thank you very much!