example of call to superlu_dist

Matthew Knepley knepley at gmail.com
Wed May 6 11:19:24 CDT 2009


Here is a test from src/ksp/ksp/examples/tutorials/makefile:

./ex10 -f0 ${DATAFILESPATH}/matrices/small -ksp_type preonly -pc_type lu
-pc_factor_mat_solver_package superlu_dist -num_numfac 2 -num_rhs 2

You should be able to run that.

  Matt

On Wed, May 6, 2009 at 11:03 AM, Fredrik Bengzon <
fredrik.bengzon at math.umu.se> 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
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090506/7df10cfd/attachment-0001.htm>


More information about the petsc-users mailing list