Fixed in petsc-dev, thanks.<div><br></div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/rev/2abe2ed8a15d">http://petsc.cs.iit.edu/petsc/petsc-dev/rev/2abe2ed8a15d</a></div><div><br></div><div>The type was only recorded when set via -pc_composite_type. PCCompositeSetType() was using the type, but not recording it.<br>
<br><div class="gmail_quote">On Mon, May 28, 2012 at 4:11 AM, Hui Zhang <span dir="ltr"><<a href="mailto:mike.hui.zhang@hotmail.com" target="_blank">mike.hui.zhang@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I use -ksp_view to check the PCComposite used by the ksp, but whatever type I set for pccomposite,<br>
using PCCompositeSetType, the output from -ksp_view always says it was ADDITIVE<br>
<br>
PC Object: 1 MPI processes<br>
type: composite<br>
Composite PC type - ADDITIVE<br>
PCs on composite preconditioner follow<br>
<br>
On the other hand, I saw from -ksp_monitor that GMRES iterations are different.<br>
<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888">Hui<br>
</font></span><div class="im HOEnZb"><br>
<br>
On May 11, 2012, at 2:55 PM, Barry Smith wrote:<br>
<br>
><br>
</div><div class="HOEnZb"><div class="h5">> If this is what you want to do then just use the PCCOMPOSITE. Use PC_COMPOSITE_SYMMETRIC_MULTIPLICATIVE<br>
><br>
> Barry<br>
><br>
> On May 11, 2012, at 6:26 AM, Hui Zhang wrote:<br>
><br>
>> I want to implement the two-level Schwarz method. Let us denote P as the one-level<br>
>> Schwarz projection and P_0 as the coarse projection. If I want the hybrid form of<br>
>> preconditioned system as follows:<br>
>><br>
>> (I-P_0) P (I-P_0)<br>
>><br>
>> which is suitable: PCMG or PCComposite? It seems to me that PCComposite is good.<br>
>> But PCMG is not suitable because it can only implement the following form:<br>
>><br>
>> (I-P) P_0 (I-P)<br>
>><br>
>> Any opinions? Thanks!<br>
>><br>
>><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>