<div dir="ltr"><div dir="ltr">On Wed, Oct 19, 2022 at 9:26 AM 김성익 <<a href="mailto:ksi2443@gmail.com">ksi2443@gmail.com</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 dir="ltr"><div>Dear PETSc users,</div><div><br></div><div><br></div><div>I have a question about structure of programming.</div><div><br></div><div>My blueprint of Finite Element programming with PETSc solver is below.</div><div><img src="cid:ii_l9fo0mtg0" alt="image.png" width="542" height="304"><br></div><div>The blue box is whole loop for my FE program.</div><div><div>There is a loop B that performs a convergence iteration (KU=F) inside the loop A in which the load increment increases.</div><div>I want to proceed in rank=0 sequentially except for the kspsolve part that solves KU=F.</div></div><div><br></div><div>How can I do this??</div></div></blockquote><div><br></div><div>I think you want this:</div><div><br></div><div>  <a href="https://petsc.org/main/docs/manual/ksp/#using-a-mpi-parallel-linear-solver-from-a-non-mpi-program">https://petsc.org/main/docs/manual/ksp/#using-a-mpi-parallel-linear-solver-from-a-non-mpi-program</a></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"><div dir="ltr"><div>Best regards,</div><div>Hyung Kim</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>