New changes for CG set type in 2.3.1-p7 ?
abdul-rahman at tu-harburg.de
abdul-rahman at tu-harburg.de
Fri Feb 24 05:24:32 CST 2006
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
More information about the petsc-users
mailing list