[petsc-users] Projection preconditioner as PCMG

2012-03-08 Thread Abdul Hanan Sheikh
Prec by multiplicative combination of CGC with post smoother S = >Identity? using mg_type_multiplicative? > >If we put in S = I, we get my > > >Prec = C + I - AC > > >which is not equal to your stated > > >Prec = I - AC > > >unless C = 0 which would make Prec = I. > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/2381691b/attachment-0001.htm>

[petsc-users] Projection preconditioner as PCMG

2012-03-08 Thread Abdul Hanan Sheikh
son_self_scale. >? >What if I want to approximate my all coarse matrices with any Krylov iteration >? > > >The methods on each level are independent, you can set them with >-mg_coarse_ksp_type gmres -mg_levels_1_ksp_type cg -mg_levels_1_ksp_max_it 100 >-mg_levels_2_ksp_type minres ...? > > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/2f557a91/attachment.htm>

[petsc-users] Projection preconditioner as PCMG

2012-03-08 Thread Abdul Hanan Sheikh
621966917526e-01 max/min 1.e+00 >? ? 2 KSP Residual norm 4.457401425338e-02 % max 1.020264072916e+00 min >8.821750286291e-01 max/min 1.156532479163e+00 >? ? 3 KSP Residual norm 1.637472997384e-02 % max 1.776622548172e+00 min >7.524631434334e-01 max/min 2.361075839629e+00 >? ? 4 KSP Residual norm 3.644899164209e-03 % max 1.907783379671e+00 min >4.245698995769e-01 max/min 4.493449445127e+00 >? ? 5 KSP Residual norm 1.443735788456e-03 % max 1.935858887793e+00 min >3.898702611314e-01 max/min 4.965392544111e+00 >? ? 6 KSP Residual norm 3.929697132002e-04 % max 1.961850264833e+00 min >3.669296462786e-01 max/min 5.34001861e+00 >? ? 7 KSP Residual norm 1.446207699005e-04 % max 1.970859698383e+00 min >3.614358036844e-01 max/min 5.452862384670e+00 > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/c4292818/attachment.htm>

[petsc-users] Binary VTK viewer

2012-03-08 Thread Jed Brown
ite multiple "steps" into the same file, so you would >> write separate files per step. >> >> >>> I will look into how hard it would be to change this. I am viewing the >>> vectors using VecView currently. Thanks again for your help. >>&g

[petsc-users] Binary VTK viewer

2012-03-08 Thread Jed Brown
lename);CHKERRQ(ierr); >> ierr = VecView(snes->vec_sol,viewer);CHKERRQ(ierr); >> ierr = PetscViewerDestroy(&viewer);CHKERRQ(ierr); >> } >> >> > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/288d7f51/attachment.htm>

[petsc-users] storing a matrix in petsc binary form

2012-03-08 Thread Wu Degang
Hi, I need to convert a matrix (in standard c array form) to the "pestc binary form" so that I can pass it to a slepc program which solves the eigenvalue spectrum for the matrix. I found someone else has raised this question long before (http://lists.mcs.anl.gov/pipermail/petsc-users/2011-July

[petsc-users] Projection preconditioner as PCMG

2012-03-08 Thread Jed Brown
--- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/8871d9bc/attachment.htm>

[petsc-users] Projection preconditioner as PCMG

2012-03-08 Thread Jed Brown
licative ? If we put in S = I, we get my Prec = C + I - AC which is not equal to your stated Prec = I - AC unless C = 0 which would make Prec = I. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/d513115e/attachment.htm>

[petsc-users] Binary VTK viewer

2012-03-08 Thread Jed Brown
- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/c5573b9f/attachment.htm>

[petsc-users] Projection preconditioner as PCMG

2012-03-08 Thread Jed Brown
vels_1_ksp_type cg -mg_levels_1_ksp_max_it 100 -mg_levels_2_ksp_type minres ... -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/ee37ca11/attachment-0001.htm>

[petsc-users] Binary VTK viewer

2012-03-08 Thread Blaise Bourdin
No. Imtiaz had to leave LSU before we could accomplish anything meaningful. Blaise On Mar 8, 2012, at 11:46 AM, Max Rudolph wrote: > I was looking into the various PetscViewerFormats available and it appears > that only ASCII vtk format is supported. I found an old thread on this > mailing l

[petsc-users] Binary VTK viewer

2012-03-08 Thread Jed Brown
t for output of binary vtk files. Was this ever done? Binary VTK output for DMDA is in petsc-dev. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/cb99a148/attachment.htm>

[petsc-users] Binary VTK viewer

2012-03-08 Thread Max Rudolph
help, Max -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/2d2bf351/attachment.htm>

[petsc-users] using PCFieldSplitGetSubKSP in c++

2012-03-08 Thread Klaij, Christiaan
This may be a dumb question (new to c++), well anyway: I'm trying to get the sub KSP associated with the Schur complement S, in order to set the null space. This is the code: KSP subksp[2]; PetscInt n=2; ierr = PCFieldSplitGetSubKSP(pc,&n,&subksp); CHKERRQ(ierr); ierr = KSPSetNullSpace(sub

[petsc-users] storing a matrix in petsc binary form

2012-03-08 Thread Jose E. Roman
El 08/03/2012, a las 08:29, Wu Degang escribi?: > Hi, > > I need to convert a matrix (in standard c array form) to the "pestc binary > form" so that I can pass it to a slepc program which solves the eigenvalue > spectrum for the matrix. I found someone else has raised this question long > bef

[petsc-users] using PCFieldSplitGetSubKSP in c++

2012-03-08 Thread Matthew Knepley
gt; -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120308/0c1b90b2/attachment.htm>