<div dir="ltr">OK, I figured it out. It was caused by the different partition of the coarse DA from the fine DA.<div><br></div><div>I will fix ex96.c.</div><div><br></div><div>Thanks,</div><div><br></div><div>Fande,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 11, 2019 at 7:24 PM Smith, Barry F. <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
Check the source code for exact details.<br>
<br>
<br>
> On May 11, 2019, at 5:58 PM, Fande Kong via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
> <br>
> Hi All,<br>
> <br>
> I was running src/mat/examples/tests/ex96.c with "-Mx 1000 -My 1000 -Mz 1000" with 8192 MPI ranks, and got the message. If I changed the mesh size a little bit (such as -Mx 400 -My 400 -Mz 400), then the code ran fine. <br>
> <br>
> The relationship between the coarse mesh and the fine mesh is defined through the following code<br>
> <br>
> <br>
> user.ratio = 2;<br>
> <a href="http://user.coarse.mx" rel="noreferrer" target="_blank">user.coarse.mx</a> = 20; <a href="http://user.coarse.my" rel="noreferrer" target="_blank">user.coarse.my</a> = 20; <a href="http://user.coarse.mz" rel="noreferrer" target="_blank">user.coarse.mz</a> = 20;<br>
> <br>
> ierr = PetscOptionsGetInt(NULL,NULL,"-Mx",&<a href="http://user.coarse.mx" rel="noreferrer" target="_blank">user.coarse.mx</a>,NULL);CHKERRQ(ierr);<br>
> ierr = PetscOptionsGetInt(NULL,NULL,"-My",&<a href="http://user.coarse.my" rel="noreferrer" target="_blank">user.coarse.my</a>,NULL);CHKERRQ(ierr);<br>
> ierr = PetscOptionsGetInt(NULL,NULL,"-Mz",&<a href="http://user.coarse.mz" rel="noreferrer" target="_blank">user.coarse.mz</a>,NULL);CHKERRQ(ierr);<br>
> ierr = PetscOptionsGetInt(NULL,NULL,"-ratio",&user.ratio,NULL);CHKERRQ(ierr);<br>
> <br>
> if (<a href="http://user.coarse.mz" rel="noreferrer" target="_blank">user.coarse.mz</a>) Test_3D = PETSC_TRUE;<br>
> <br>
> <a href="http://user.fine.mx" rel="noreferrer" target="_blank">user.fine.mx</a> = user.ratio*(user.coarse.mx-1)+1;<br>
> <a href="http://user.fine.my" rel="noreferrer" target="_blank">user.fine.my</a> = user.ratio*(user.coarse.my-1)+1;<br>
> <a href="http://user.fine.mz" rel="noreferrer" target="_blank">user.fine.mz</a> = user.ratio*(user.coarse.mz-1)+1;<br>
> <br>
> <br>
> I was wondering what is the rule to determine what sizes I could pass in? <br>
> <br>
> Thanks,<br>
> <br>
> Fande,<br>
<br>
</blockquote></div>