[petsc-users] PETSc MUMPS interface

Junchao Zhang junchao.zhang at gmail.com
Wed Jan 12 09:03:19 CST 2022


Calling PCSetUp() before KSPSetUp()?

--Junchao Zhang


On Wed, Jan 12, 2022 at 3:00 AM Varun Hiremath <varunhiremath at gmail.com>
wrote:

> Hi All,
>
> I want to collect MUMPS memory estimates based on the initial
> symbolic factorization analysis before the actual numerical factorization
> starts to check if the estimated memory requirements fit the available
> memory.
>
> I am following the steps from
> https://petsc.org/main/src/ksp/ksp/tutorials/ex52.c.html
>
>   PCFactorSetMatSolverType(pc,MATSOLVERMUMPS);
>   PCFactorSetUpMatSolverType(pc);
>   PCFactorGetMatrix(pc,&F);
>
>   KSPSetUp(ksp);
>   MatMumpsGetInfog(F,...)
>
> But it appears KSPSetUp calls both symbolic and numerical factorization.
> So is there some other way to get these statistics before the actual
> factorization starts?
>
> Thanks,
> Varun
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220112/7b6dd0d7/attachment.html>


More information about the petsc-users mailing list