[petsc-users] How to introduce new external package into PETSc?

袁煕 yuanxi at advancesoft.jp
Sun Nov 27 22:29:40 CST 2022


Thanks a lot!

I have tried to let PETSc download my source code successfully.

2022年11月25日(金) 22:42 Pierre Jolivet <pierre at joliv.et>:

>
> > On 25 Nov 2022, at 10:04 AM, 袁煕 <yuanxi at advancesoft.jp> wrote:
> >
> > Dear PETSc developers,
> >
> > I have my own linear solver and am trying to put it with PETSc as an
> external solver.  I wish to know following  details
> >
> > 1.  How to let PETSc configure to download (from github) the source code
> and compile, install it afterwards.
>
> You can borrow code from one of the many files in
> config/BuildSystem/config/packages/*.py
> Put your file in there and then use --download-name-of-your-file when
> configuring PETSc.
>
> > 2.   How to let PETSc call the solver. I think it may be accomplished by
> calling PCFactorSetMatSolverPackage. Is this correct?
>
> You can borrow code from one
> src/mat/impls/aij/seq/{mkl_pardiso,umfpack,superlu} or
> src/mat/impls/aij/mpi/mumps to name a few.
>
> Thanks,
> Pierre
>
> > Many thanks,
> >
> > Yuan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221128/2c622800/attachment.html>


More information about the petsc-users mailing list