Thanks.  That did the trick.<div><>Srinath<br><br><div class="gmail_quote">On Tue, Sep 14, 2010 at 8:05 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Mon, 13 Sep 2010 16:00:39 -0600, Srinath Vadlamani <<a href="mailto:srinath@txcorp.com">srinath@txcorp.com</a>> wrote:<br>
> We have our own test code and ran this command:<br>
>  mpirun -n 2 ./withSplitArrays 100 -ksp_type preonly -pc_type lu<br>
> -pc_factor_mat_solver_package superlu_dist<br>
><br>
> built with 2 hour old petsc-dev<br>
><br>
> 1)easy makefile for splitArrays.tar.gz<br>
> 2) changed the PETSC_ASCII_VIEWER variables to the nonunderscored version<br>
> for petsc-dev (Please do not fear underscores. To many of those types in<br>
> this world already).<br>
<br>
</div>It's for consistency and to avoid namespace conflicts.<br>
<br>
> call KSPSetFromOptions(ksp,perr)<br>
> call KSPSetOperators(ksp,B,B,SAME_PRECONDITIONER,perr)<br>
<br>
KSPSetFromOptions can't do it's job unless you give it matrices (it<br>
needs to know the type of the matrix in order to select a solver<br>
package).  Transpose these two lines and it will work.<br>
<font color="#888888"><br>
Jed<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div>=========================</div><font color="#666666">Srinath Vadlamani, PhD.</font><div><font color="#666666">Tech-X Corp. Research Scientist</font></div><div>

<font color="#666666">5621 Arapahoe Ave. Suite A</font></div><div><font color="#666666">Boulder, CO 80303</font></div><div><font color="#666666">303-996-2034</font></div><div>=========================</div><br>
</div>