[petsc-users] Doubt about mesh size distribution in DMDACreate3d using periodic boundary conditions

MIGUEL MOLINOS PEREZ mmolinos at us.es
Wed Nov 20 06:06:24 CST 2024


Dear Barry,

Please, find attached to this email a minimal example of the problem. Run it using 8 MPI processes.

Thanks,
Miguel





On 20 Nov 2024, at 11:48, Miguel Molinos <mmolinos at us.es> wrote:

Hi Bary:

I will check the example you suggest. Anyhow, I’ll send a reproducible example ASAP.

Thanks,
Miguel

On 19 Nov 2024, at 18:55, Barry Smith <bsmith at petsc.dev> wrote:


   I modify src/dm/tests/ex25.c and always see a nice even split when possible with both DM_BOUNDARY_NONE and DM_BOUNDARY_PERIODIC

    Can you please send a reproducible example?

    Thanks

     Barry


On Nov 19, 2024, at 6:14 AM, MIGUEL MOLINOS PEREZ <mmolinos at us.es> wrote:

Dear all:

It seems that if I mesh a cubic domain with “DMDACreate3d” using 8 bricks for discretization and with periodic boundaries, each of the bricks has a different size. In contrast, if I use DM_BOUNDARY_NONE, all 8 bricks have the same size.

I have used this together with the DMSWarm discretization. And as you can see the number of particles per rank is not evenly distributed:
210 420 366 732 420 840 732 1464

Am I missing something?

Thanks,
Miguel


<Screenshot 2024-11-19 at 10.56.36.png>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20241120/d3868f49/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: atoms-3D.cpp
Type: application/octet-stream
Size: 26402 bytes
Desc: atoms-3D.cpp
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20241120/d3868f49/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Mg-hcp-cube-x17-x10-x10.dump
Type: application/octet-stream
Size: 436301 bytes
Desc: Mg-hcp-cube-x17-x10-x10.dump
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20241120/d3868f49/attachment-0003.obj>


More information about the petsc-users mailing list