[petsc-users] reusing LU factorization?

David Liu daveliu at mit.edu
Tue Jan 28 14:09:15 CST 2014


yes, I am repeatedly calling KSPSolve. I set the operator once at the
beginning, but I change some of the elements of the operator between solves
without changing the nonzero pattern.


On Tue, Jan 28, 2014 at 2:58 PM, Jed Brown <jed at jedbrown.org> wrote:

> David Liu <daveliu at mit.edu> writes:
>
> > Hi, I'm writing an application that solves a sparse matrix many times
> using
> > Pastix. I notice that the first solves takes a very long time, while the
> > subsequent solves are very fast. I don't fully understand what's going on
> > behind the curtains, but I'm guessing it's because the very first solve
> has
> > to read in the non-zero structure for the LU factorization, while the
> > subsequent solves are faster because the nonzero structure doesn't
> change.
>
> How are you doing this?  Repeated calls to KSPSolve?  Are you changing
> the operator between solves?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140128/a0a79aaf/attachment-0001.html>


More information about the petsc-users mailing list