example of call to superlu_dist

Hong Zhang hzhang at mcs.anl.gov
Wed May 6 11:20:45 CDT 2009


'-ksp_type preonly -pc_type lu -pc_factor_mat_solver_package superlu_dist'
See src/ksp/ksp/examples/tutorials/makefile

Hong

On Wed, 6 May 2009, Fredrik Bengzon wrote:

> Hi
> Is there an example of how to call superlu_dist somewhere. I'm  not looking 
> for command line options, but how to call KSP in my code when using 
> superlu_dist. I've set the KSPPREONLY, and PCLU options, and also made a call 
> to PCFactorSetMatSolverPackage(), but this does not seem to be the right way 
> to do it. Petsc aborts with error message 'mpiaij matrix does not have a 
> build-in LU solver'. Do I need to specify any particular matrix format to use 
> with superlu_dist? Any input is appreciated.
> Regards
> Fredrik Bengzon
>


More information about the petsc-users mailing list