<div class="gmail_quote">On Fri, Nov 11, 2011 at 08:26, TAY wee-beng <span dir="ltr"><<a href="mailto:zonexo@gmail.com">zonexo@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 id=":1tl">However, it seems that there are better ways to do it to get a more balanced load. Do I use DMDA in PETSc to do it? I'm now using staggered Cartesian grids for my u,v,p. Is there an example to construct a Laplace/Poisson equation using DMDA?<br>
</div></blockquote><div><br></div><div>src/snes/examples/tutorials/ex5.c (Bratu problem, simple nonlinearity added to Poisson)</div><div><br></div><div>See also</div><div><br></div><div>src/snes/examples/tutorials/ex50.c (thermal/lid-driven cavity)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":1tl">
<br>
It is mentioned in the manual that DMMG infrastructure will be replaced in the next release and we should not use it. Is this related to DMDA?<br></div></blockquote></div><br><div>DMMG used DM (the algebraic interface implemented by DMDA). DMDA is recommended, but don't write new code with DMMG.</div>