<div dir="ltr"><div dir="ltr">On Sun, Mar 24, 2019 at 10:21 AM Pierre Jolivet <<a href="mailto:pierre.jolivet@enseeiht.fr">pierre.jolivet@enseeiht.fr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">It’s a 4x4 matrix.<div>The first 2x2 diagonal matrix is a field.<div>The second 2x2 diagonal matrix is another field.</div><div>In the second field, the first diagonal coefficient is a subfield.</div><div>In the second field, the second diagonal coefficient is another subfield.</div><div>I’m changing the operators from the second subfield (last diagonal coefficient of the matrix).</div><div>When I solve a system with the complete matrix (2 fields), I get a different “partial solution" than when I solve the “partial system” on just the second field (with the two subfields in which I modified the operators from the second one).</div></div></div></blockquote><div><br></div><div>I may understand waht you are doing.</div><div>Fieldsplit calls MatGetSubMatrix() which can copy values, depending on the implementation,</div><div>so changing values in the original matrix may or may not change it in the PC.</div><div> </div><div>   Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div>I don’t know if this makes more or less sense… sorry :\</div><div>Thanks,</div><div>Pierre<br><div><br><blockquote type="cite"><div>On 24 Mar 2019, at 8:42 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:</div><br class="gmail-m_-4800910044753334158Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr">On Sat, Mar 23, 2019 at 9:12 PM Pierre Jolivet via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I’m trying to figure out why both solutions are not consistent in the following example.<br>
Is what I’m doing complete nonsense?<br></blockquote><div><br></div><div>The code does not make clear what you are asking. I can see its a nested fieldsplit.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks in advance for your help,<br>
Pierre<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-4800910044753334158gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>