[petsc-users] possible to save direct solver factorization for later use

Jed Brown jed at jedbrown.org
Wed Dec 9 20:17:11 CST 2015


Randall Mackie <rlmackie862 at gmail.com> writes:

> Is it possible to save a direct solver factorization (like Mumps) for use in later parts of a code?
>
> In general, I’m thinking of a scenario like this:
>
> mat A - do lots of solves using Mumps
>
> mat B - do lots of solves using Mumps
>
>
> 	do other stuff
>
> mat A - do lots of solves using Mumps
>
> mat B - do lots of solves using Mumps
>
>
> If possible, I’d rather only do the numerical factorizations once, and then reuse as required.

Use different KSPs for each solve.

> Do KSPView and KSPLoad to/from binary files save this information?

No, and saving factors to a file likely wouldn't even be useful unless
factorization takes on the order of an hour or more.  If they are too
big to fit in DRAM simultaneously (and you can't just use more nodes),
your best bet is to have some local memory and let the OS swap them out
(it'll automatically do the right thing in this instance).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151209/b827d9f3/attachment.pgp>


More information about the petsc-users mailing list