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

Re: How can I compute condition number



On 9/24/06, Gong Ding <gdiso@xxxxxxxx> wrote:
Hi,
   I meet some convergince problem with my
semiconductor simulation code. I 'd like to check
the condition number of Jacobian matrix. How can I
do with PETSC?

The true L_2 condition number would involve a very large
SVD calculation, and thus is rarely computed. We do have
the option:

   -ksp_compute_singularvalues

which will give you the condition number of the Krylov matrix,
a low-dimensional approximation of your matrix. A very
convenient form of this is:

   -ksp_singmonitor

which includes this information in the KSP monitor.

  Thanks,

     Matt

--
USTC Alumni Email System
--
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness