fix LU for linear solvers

Asked by Nguyen Van Dang

Dear all,
In a loop, I am solving a linear system AX=b, where A is a given matrix and its value does not change. Is there any way to fix LU so that we can use it for all iterations?
Thanks,
Best regards,
Dang

Question information

Language:
English Edit question
Status:
Solved
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Solved by:
Gerd Wachsmuth
Solved:
Last query:
Last reply:
Revision history for this message
Best Gerd Wachsmuth (gerd-wachsmuth) said :
#1

The LUSolver has a parameter "reuse_factorization". If you set this to true, the solver will reuse the LU-factorization.

Revision history for this message
Nguyen Van Dang (dang-1032170) said :
#2

Thanks Gerd Wachsmuth, that solved my question.