<div dir="ltr">On Tue, Apr 16, 2013 at 4:05 AM, Mikolaj <span dir="ltr"><<a href="mailto:mikolaj.szydlarski@cea.fr" target="_blank">mikolaj.szydlarski@cea.fr</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am using a block preconditioners and I wonder if it is possible to print PC data structure for sub-solvers limited only to the one block. By default PCView 'pollute' std output with the information about every single sub-setup from each MPI process ( e.g. below ) and I haven't found so far a solution for printing it only from one processor.<br>
</blockquote><div><br></div><div style>Pull out the subpc you want and call PCView. There is nothing from the command line.</div><div style><br></div><div style>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

call PCView(pc,PETSC_VIEWER_STDOUT_<u></u>WORLD,ierr) after setup of sub-solvers:<br>
<br>
PC Object: 16 MPI processes<br>
  type: bjacobi<br>
    block Jacobi: number of blocks = 16<br>
    Local solve info for each block is in the following KSP and PC objects:<br>
  [0] number of local blocks = 1, first local block number = 0<br>
    [0] local block number 0<br>
<br>
And then 16 x<br>
<br>
{<br>
<br>
    KSP Object:    (sub_)     1 MPI processes<br>
      type: preonly<br>
      maximum iterations=10000, initial guess is zero<br>
      tolerances:  relative=1e-05, absolute=1e-50, divergence=10000<br>
      left preconditioning<br>
      using NONE norm type for convergence test<br>
    PC Object:    (sub_)     1 MPI processes<br>
      type: ilu<br>
        ILU: out-of-place factorization<br>
        1 level of fill<br>
        tolerance for zero pivot 2.22045e-14<br>
<br>
}<br>
<br>
Thank you in advance for any hint,<br>
<br>
best regards,<br>
<br>
Mikolaj<br>
<br>
p.s. My petsc version: petsc-3.3-p5 and piece of code for printing:<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>