[petsc-dev] where did ksp_type preonly go?

Srinath Vadlamani srinath at txcorp.com
Tue Sep 14 09:14:23 CDT 2010


Thanks.  That did the trick.
<>Srinath

On Tue, Sep 14, 2010 at 8:05 AM, Jed Brown <jed at 59a2.org> wrote:

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


-- 
=========================
Srinath Vadlamani, PhD.
Tech-X Corp. Research Scientist
5621 Arapahoe Ave. Suite A
Boulder, CO 80303
303-996-2034
=========================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100914/4f4b372c/attachment.html>


More information about the petsc-dev mailing list