[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New changes for CG set type in 2.3.1-p7 ?



Satish,

On Thu, 23 Feb 2006, Satish Balay wrote:

>
> I just tried the following [with both c & fortran examples
> ksp/examples/tutorials/ex2.c, ex2f.F] And I get the expected behavior.
>
> Maybe KSPSetType() was not called before KSPCGSetType()?

You're right. I didn't have KSPSetType beforehand.

> Satish
>
> --------
>
> >>>
>       call KSPCreate(PETSC_COMM_WORLD,ksp,ierr)
>       call KSPSetType(ksp,KSPCG,ierr)
>       call KSPCGSetType(ksp,KSP_CG_SYMMETRIC,ierr)
>       call KSPSetOperators(ksp,A,A,DIFFERENT_NONZERO_PATTERN,ierr)
> >>>


Thanks!

Razi