[petsc-users] DMPlex partition problem

Danyang Su danyang.su at gmail.com
Tue Apr 7 23:46:29 CDT 2020


Dear All,

 

Hope you are safe and healthy.

 

I have a question regarding pretty different partition results of prism mesh. The partition in PETSc generates much more ghost nodes/cells than the partition in Gmsh, even though both use metis as partitioner. Attached please find the prism mesh in both vtk and exo format, the test code modified based on ex1f90 example. Similar problem are observed for larger dataset with more layers. 

 

For example, in Gmsh, I get partition results using two processors and four processors as shown below, which are pretty reasonable.

 

 

However, in PETSc, the partition looks a bit weird. Looks like it takes layer partition first and then inside layer. If the number of nodes per layer is very large, this kind of partitioning results into much more ghost nodes/cells. 

 

Anybody know how to improve the partitioning in PETSc? I have tried parmetis and chaco. There is no big difference between them. 

 

 

 

Thanks,

 

Danyang

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 457827 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 542677 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 349308 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basin2layer.exo
Type: application/octet-stream
Size: 51612 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1f90.F90
Type: application/octet-stream
Size: 4441 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile
Type: application/octet-stream
Size: 365 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basin2layer.vtk
Type: application/octet-stream
Size: 55566 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200407/6d0cb773/attachment-0007.obj>


More information about the petsc-users mailing list