[petsc-dev] Performance of Petsc Cholesky vs LU

Jed Brown jedbrown at mcs.anl.gov
Wed Nov 30 14:07:10 CST 2011


On Wed, Nov 30, 2011 at 14:04, Barry Smith <bsmith at mcs.anl.gov> wrote:

> Ok, so how can we resolve this? The problem is that the default ordering
> is set when the PCCreate_Cholesky() and is set to be natural in order "to
> be safe" if sbaij matrix is used. We could change it to default to ND and
> then when PCSetUp_Cholesky() is called simply set the ordering to natural
> if it is a sbaij matrix. Kind of a hack but what do you suggest that
> doesn't involve tracking some other variable indicating if the user has set
> the ordering type to something else ...
>

Why the hell set it so soon? This is like choosing which side/norm to use
in a Krylov method. Make the decision lazily (when it is requested or
needed to do something), otherwise leave it undefined.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111130/49d8a502/attachment.html>


More information about the petsc-dev mailing list