<div dir="ltr"><div><div dir="ltr"><div>Hi Randall, <br><br></div>Thanks for providing a pointer to the DMDAGetRay function! <br><br></div><div>After looking at its implementation, I came up with a solution that creates a natural ordered slice vector on the same subset of processors as the DMDA ordered slice vector (by scattering from the DMDA order slice to a natural ordered slice by using an AO associated with a temporary 2D DMDA object that lives only on the subset of ranks where the slice vector lives). I've attached the code for the same should it be of interest to anyone who reads this.<br><br></div></div>--<br><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Sajid Ali (he/him) | PhD Candidate<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div><div style="font-size:12.8px"><a href="http://s-sajid-ali.github.io" target="_blank">s-sajid-ali.github.io</a></div></div></div></div></div></div></div></div></div>