[petsc-users] How to get processes layout from already created DMDA object?

Petr Kotas petr.kotas at gmail.com
Wed Sep 25 10:08:55 CDT 2013


Hi guys,

I have probably an easy question. How do I extract distribution of 
processes from already created DM object. Which was created with call to

ierr = DMDACreate3d(PETSC_COMM_WORLD, boundaryType, boundaryType, 
boundaryType, DMDA_STENCIL_BOX,
                                     M[0], M[1], M[2], PETSC_DECIDE, 
PETSC_DECIDE, PETSC_DECIDE, dof, stencilSize,
                                     PETSC_NULL, PETSC_NULL, PETSC_NULL, 
&da);

where /boundaryType/, /M[i], dof, stencilSize /are my variables.

Simply, I would like to to know how PETSC_DECIDE(ed) about the layout. I 
need it for my other part of the code.

Thank You,
Petr Kotas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130925/b6e03640/attachment.html>


More information about the petsc-users mailing list