[petsc-users] PCFactorSetMatSolverPackage / PCFactorGetMatSolverPackage

Jed Brown jedbrown at mcs.anl.gov
Tue Aug 2 08:10:28 CDT 2011


On Tue, Aug 2, 2011 at 06:53, Clemens Domanig <clemens.domanig at uibk.ac.at>wrote:

> The problem with PCFactorGetMatSolverPackage is I didn't manage to use it.
>
> const MatSolverPackage pack;
>

Insert here:

PCSetType(prec,PCCHOLESKY);


> PCFactorGetMatSolverPackage( prec, &pack);
>

The type has to be set first, otherwise the PC doesn't have any concept of a
solver package. I have updated this function to return NULL instead of an
undefined value in this case, thanks.

Barry, speak up if you would prefer an error. I think PetscUseMethod() is
somewhat overused in query functions at present because there is a
reasonable non-error condition that can be returned.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110802/18c9f298/attachment-0001.htm>


More information about the petsc-users mailing list