On Wed, 22 Feb 2006, Satish Balay wrote:
I know where I did wrong now: the call below:
call KSPCGSetType( ksp, KSP_CG_SYMMETRIC, ierr )
should have come _after_:
call KSPSetFromOptions(ksp,ierr)
Otherwise it just goes with the default Hermitian even if I don't set the
switch to
Satish,
Can you please check this? We should be able to
call KSPCGSetType() either before or afterwards. It could
be that KSPSetFromOptions_CG() wrongly resets to the default
value. I looked at the code and didn't see any wrong logic.
Probably it may be easiest to just run in the
What about calling SetFromOptions after the call to KSPCGSetType()?
Thanks
Barry
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
On Wed, 22 Feb 2006, abdul-rahman at tu-harburg.de wrote:
Satish,
On Tue, 21 Feb 2006, Satish Balay wrote:
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
oops, thanks for pointing
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: