[petsc-users] multigrid as preconditioner--message 8

2011-12-14 Thread M.Younas
: Warning not preallocating matrix storage > > What this means? Did I correctly preallocate the matrix? > > 2- I need to test MatSeqBAIJSetPreallocation() too but I little confused > with descriptions of the command in man-page: > > what are "nz" and "nnz[]" i

[petsc-users] Multigrid as preconditioner

2011-12-14 Thread M.Younas
?Hi, PETSc, Team, I have solved a non-symmetric Poisson problem using GMRES(m) as solver and BoomerAMG (from Hypre) as preconditioner. But I don't understand how the BoomerAMG works as preconditioner with GMRES(m). Can anyone explain the procedure? Does it work like BoomerAMG precondition the l

[petsc-users] multigrid as preconditioner--message 8

2011-12-14 Thread Barry Smith
gt; I am facing with two questions about Block-Sparse Preallocation: >> >> 1- I set array "nnz[]" and did: >> >> MatSetType ( JAC, MATSEQBAIJ ); >> MatSetSizes( JAC, PETSC_DECIDE, PETSC_DECIDE, nt, nt ); >> MatSeqAIJSetPreallocation( JAC, 0

[petsc-users] Multigrid as preconditioner

2011-12-14 Thread Barry Smith
On Dec 14, 2011, at 7:07 AM, M.Younas wrote: > Hi, PETSc, Team, > > I have solved a non-symmetric Poisson problem using GMRES(m) as solver and > BoomerAMG (from Hypre) as preconditioner. But I don't understand how the > BoomerAMG works as preconditioner with GMRES(m). Can anyone explain the