New changes for CG set type in 2.3.1-p7 ?

Satish Balay balay at mcs.anl.gov
Tue Feb 21 10:57:57 CST 2006


On Tue, 21 Feb 2006, abdul-rahman at tu-harburg.de wrote:

> Hi all,
> 
> There seems to be some changes for the CG type in PETSc 2.3.1-p7.
> I can't  have -ksp_cg_symmetric anymore - it simply says:
> 
> Option left: name:-ksp_cg_symmetric no value
> 
petsc-2.3.0 changelog has the following entry:

>>>
-ksp_cg_Hermitian and -ksp_cg_symmetric have been changed
to -ksp_cg_type Hermitian or symmetric
>>>

> 
> Hard coding into my routine does not help either:
> 
>       call KSPCGSetType( ksp, KSP_CG_SYMMETRIC, ierr )
> 
> does not show any effect. I still get CG of Hermitian type.

Looks like there is a bug here. KSP_CG_SYMMETRIC value was changed on
C side - but not on fortran side. Try editing
include/finclude/petscksp.h and change to:

      parameter (KSP_CG_SYMMETRIC=0,KSP_CG_HERMITIAN=1)

I'll add this to the next patch update to petsc-2.3.1

> Are the changes documented anywhere? I cannot make much sense from the
> bitkeeper history.
> 
> It works with 2.2.1 and *I think* 2.3.0 too. By the way there's a *huge*
> difference in iterations between Hermitian and Symmetric types in my test
> problem.

If you still have problems after the above fix - let us know.

Satish




More information about the petsc-users mailing list