If you need corner points, use DMDA_STENCIL_BOX.<br><br><div class="gmail_quote">On Fri, Jun 15, 2012 at 7:58 PM, TAY wee-beng <span dir="ltr"><<a href="mailto:zonexo@gmail.com" target="_blank">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">Hi,<br>
<br>
I'm trying to implement DM in my code. So far, I found that it is very convenient to use its features. I am currently using DMDA STENCIL STAR.<br>
<br>
However, in some parts of my code, I need to update ghost points at east east, west west etc.<br>
<br>
DMGlobalToLocalBegin/end can only update east, west etc. What's the easiest way to update these additional points? Do I have to use MPI_Send?<br>
<br>
Also, how is the memory allocated? I think the east east values will be outside the local vector, is that so?<br>
<br>
Thank you.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Yours sincerely,<br>
<br>
TAY wee-beng<br>
<br>
</font></span></blockquote></div><br>