[petsc-dev] where did ksp_type preonly go?

Jed Brown jed at 59A2.org
Tue Sep 14 09:05:44 CDT 2010


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



More information about the petsc-dev mailing list