On Wed, Jul 20, 2016 at 12:20 PM, Michael Povolotskyi <mpovo...@purdue.edu>
wrote:

> Dear Libmesh developers/users,
> I have the following question:
>
> How to configure the linear solver of a linear system to use MUMPS
> package available though PETSc?
> In PETSc I would do something like this:
>
>   ierr = KSPSetType(ksp,KSPPREONLY);
>   ierr = PCSetType(pc,PCLU);
>   ierr = PCFactorSetMatSolverPackage(pc,MATSOLVERMUMPS);
>

You can do it from the command line:

-ksp_type preonly -pc_type lu -pc_factor_mat_solver_package mumps

If you want to do it in code, you can always call ksp() and pc() to get the
corresponding objects from a PetscLinearSolver object, and make PETSc calls
directly on them.

-- 
John
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to