Re: [petsc-users] What is the right way to implement a (block) Diagonal ILU as PC?

2020-02-07 Thread Smith, Barry F. via petsc-users
> On Feb 7, 2020, at 7:44 AM, Hao DONG wrote: > > Thanks, Barry, I really appreciate your help - > > I removed the OpenMP flags and rebuilt PETSc. So the problem is from the BLAS > lib I linked? Yes, the openmp causes it to run in parallel, but the problem is not big enough and the machi

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Jed Brown
Fande Kong writes: > Thanks, Matt, > > It is a great paper. According to the paper, here is my understanding: for > normal matrices, the eigenvalues of the matrix together with the > initial residual completely determine the GMRES convergence rate. For > non-normal matrices, eigenvalues are NOT t

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Lawrence Mitchell
On Fri, 7 Feb 2020 at 19:15, Fande Kong wrote: > Thanks, Matt, > > It is a great paper. According to the paper, here is my understanding: for > normal matrices, the eigenvalues of the matrix together with the > initial residual completely determine the GMRES convergence rate. For > non-normal mat

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Fande Kong
On Fri, Feb 7, 2020 at 11:43 AM Victor Eijkhout wrote: > > > On , 2020Feb7, at 12:31, Mark Adams wrote: > > BTW, one of my earliest talks, in grad school before I had any real > results, was called "condition number does not matter” > > > After you learn that the condition number gives an _upper

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Fande Kong
Thanks, Matt, It is a great paper. According to the paper, here is my understanding: for normal matrices, the eigenvalues of the matrix together with the initial residual completely determine the GMRES convergence rate. For non-normal matrices, eigenvalues are NOT the relevant quantities in determ

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Matthew Knepley
On Fri, Feb 7, 2020 at 1:43 PM Victor Eijkhout wrote: > > > On , 2020Feb7, at 12:31, Mark Adams wrote: > > BTW, one of my earliest talks, in grad school before I had any real > results, was called "condition number does not matter” > > > After you learn that the condition number gives an _upper_

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Victor Eijkhout
On , 2020Feb7, at 12:31, Mark Adams mailto:mfad...@lbl.gov>> wrote: BTW, one of my earliest talks, in grad school before I had any real results, was called "condition number does not matter” After you learn that the condition number gives an _upper_bound_ on the number of iterations, you lea

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Mark Adams
On Thu, Feb 6, 2020 at 8:07 PM Alexander Lindsay wrote: > It looks like Fande has attached the eigenvalue plots with the real axis > having a logarithmic scale. The same plots with a linear scale are attached > here. > > The system has 306 degrees of freedom. 12 eigenvalues are unity for both > s

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Matthew Knepley
On Thu, Feb 6, 2020 at 8:07 PM Alexander Lindsay wrote: > It looks like Fande has attached the eigenvalue plots with the real axis > having a logarithmic scale. The same plots with a linear scale are attached > here. > > The system has 306 degrees of freedom. 12 eigenvalues are unity for both > s

Re: [petsc-users] Condition Number and GMRES iteration

2020-02-07 Thread Matthew Knepley
On Thu, Feb 6, 2020 at 7:37 PM Fande Kong wrote: > Hi All, > > MOOSE team, Alex and I are working on some variable scaling techniques to > improve the condition number of the matrix of linear systems. The goal of > variable scaling is to make the diagonal of matrix as close to unity as > possible

Re: [petsc-users] SLEPc: The inner product is not well defined

2020-02-07 Thread Jose E. Roman
This error appears when computing the B-norm of a vector x, as sqrt(x'*B*x). Probably your B matrix is semi-definite, and due to floating-point error the value x'*B*x becomes negative for a certain vector x. The code uses a tolerance of 10*PETSC_MACHINE_EPSILON, but it seems the rounding errors