<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Thank you Matt.<br>
<br>
I have done what you suggested i.e., <br>
<br>
call PCBJacobiGetSubKSP(pc,nlocal,PETSC_NULL,subksp,ierr)<br>
call KSPView(subksp(1),PETSC_VIEWER_STDOUT_WORLD,ierr)<br>
<br>
and it works perfectly. <br>
<br>
Mikolaj.<br>
<br>
</div>
<blockquote
cite="mid:CAMYG4GksdPkGOm=OxLK_LzT2vmYnZdMig7Lx42-bb2BgRvwq2Q@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">On Tue, Apr 16, 2013 at 4:05 AM, Mikolaj <span
dir="ltr"><<a moz-do-not-send="true"
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_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>
</blockquote>
<br>
</body>
</html>