Here is a test from src/ksp/ksp/examples/tutorials/makefile:<br><br>./ex10 -f0 ${DATAFILESPATH}/matrices/small -ksp_type preonly -pc_type lu -pc_factor_mat_solver_package superlu_dist -num_numfac 2 -num_rhs 2<br><br>You should be able to run that.<br>
<br> Matt<br><br><div class="gmail_quote">On Wed, May 6, 2009 at 11:03 AM, Fredrik Bengzon <span dir="ltr"><<a href="mailto:fredrik.bengzon@math.umu.se">fredrik.bengzon@math.umu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
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.<br>
Regards<br><font color="#888888">
Fredrik Bengzon<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>