![]() Right-hand-side vectors, the user should simply call KSPSolve() Structure with exactly the same matrix elements) but different Systems having the same preconditioner matrix (i.e., the same data When solving multiple linear systems of the same size with the same PCFactorSetUseInPlace(), discussed below, causes factorization to beĭone in-place. Of having a corrupted matrix after a linear solve. This approach prevents the user from the unexpected surprise ![]() The options -ksp_type preonly -pc_type lu (see below).īy default, if a direct solver is used, the factorization is not done PETSc interfaces, see Using External Linear Solvers) one may use PETSc for sequential matrices, and by several external solvers through To solve a linear system with a direct solver (currently supported by KSP routines to modify the corresponding default options. The application programmer can then directly call any of the PC or
0 Comments
Leave a Reply. |