<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 11, 2015 at 10:52 AM, Hanglin Ye <span dir="ltr"><<a href="mailto:hanglinye@gmail.com" target="_blank">hanglinye@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear all,<br><br></div>I am new to PETSc and I want to use it to parallel my current serial FEM code. I want to use Domain Decomposition Method so that the whole FEM domain is partitioned into sub-domains and computations are performed in sub-domains then assemble together. Is there a way to use PETSc to realize that ? <br><br></div>I've been searching through tutorials but none seems to be clear about this aspect. I mainly wish to know what solver of PETSc do I need. </div></blockquote><div><br></div><div>Do you have a structured or unstructured mesh? In either case, you will use a DM to encapsulate your mesh, which will give you</div><div>DMLocalToGlobal() and DMGlobalToLocal() to map between Vecs which are appropriate for the solver (global) and those with</div><div>ghost regions which are appropriate for assembly (local). You can see an example in SNES ex5, ex12, and ex19.</div><div><br></div><div> Thanks,</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thank you very much.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>-- <br><div><div dir="ltr">Hanglin Ye<br>Ph.D.Student MANE, RPI<br></div></div>
</div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>