<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Performance degradation after upgrade to 3.0.0</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Hi,<BR>
<BR>
I have also verified that there has been a degradation of performance using the new 3.0 version:<BR>
<BR>
This is my function calling PETSc:<BR>
<BR>
&nbsp; KSP ksp;<BR>
&nbsp; PC pc;<BR>
<BR>
&nbsp; KSPCreate (PETSC_COMM_WORLD, &amp;ksp);<BR>
<BR>
&nbsp; KSPSetOperators (ksp, *A, *A, DIFFERENT_NONZERO_PATTERN);<BR>
<BR>
&nbsp; KSPSetType (ksp, KSPFGMRES);<BR>
<BR>
&nbsp; KSPGetPC (ksp, &amp;pc);<BR>
<BR>
&nbsp; PCSetType (pc, PrecondProc);<BR>
<BR>
&nbsp; KSPSetInitialGuessNonzero (ksp, PETSC_TRUE);<BR>
<BR>
&nbsp; KSPSetTolerances (ksp, 1E-50, maxtol, PETSC_DEFAULT, maxiter);<BR>
<BR>
&nbsp; KSPSetFromOptions (ksp);<BR>
<BR>
&nbsp; KSPSolve (ksp, *b, *x);<BR>
<BR>
&nbsp; KSPGetIterationNumber (ksp, iter);<BR>
<BR>
&nbsp; KSPGetResidualNorm (ksp, res);<BR>
<BR>
&nbsp; KSPDestroy (ksp);<BR>
<BR>
<BR>
with previous version 2.3.3-p6:<BR>
<BR>
Number of iterations: 42 Residual: +7.073781E-13 Time: +8.615024E-03<BR>
<BR>
now:<BR>
<BR>
Number of iterations: 500 Residual: +2.746161E-05 Time: +1.026870E-01<BR>
<BR>
It is reaching maximum number of iterations. The only thing I changed was:<BR>
<BR>
MatSetOption (*A, MAT_SYMMETRIC);<BR>
&nbsp;to<BR>
MatSetOption (*A, MAT_SYMMETRIC, PETSC_TRUE);<BR>
<BR>
I think I didn't change anything else.<BR>
<BR>
<BR>
Regards,<BR>
<BR>
Billy.<BR>
</FONT>
</P>

</BODY>
</HTML>