[petsc-users] Whether multiple DA objects of equal dimensions generate the same domain decomposition ?

Barry Smith bsmith at mcs.anl.gov
Wed Aug 18 00:40:41 CDT 2010





On Aug 18, 2010, at 12:28 AM, "Li, Zhisong (lizs)" <lizs at mail.uc.edu> wrote:

> Hi, Petsc team,
> 
> For quite a while, I have a wonder that whether two DA objects of equal dimensions (x, y, z) will generate the same domain decomposition in a parallel computation?

  Yes, the logic on default decompositions only depends on M N  and P not on dof.

> 
> In my understanding of PETSc, sometimes we have to use different DA objects because of the restrictions of the generated matrix and DOF associated with a DA. For example, for a given structured domain, we may use da1 to store the velocities (u, v, w, DOF = 3), and da2 to store the pressure (p, DOF = 1), as we want to compute them separately. Matrice from DAGetMatrix() must be of different sizes for da1 and da2 because of different DOF. On the other hand, we also want to project pressure to velocities point to point. So whether da1 and da2 will distribute exactly the same portion of the overall domain on each computer node when we're running parallelly? If not, how can we achieve it?
> 
   The final arguments to dacreate2d and dacreate3d allow you dictate the exact decomposition along with the m n and p arguments. But in you situation you need not worry about them.

Barry
   
> 
> Thank you very much!
> 
> Regards,
> 
> 
> Zhisong Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100818/1f90c6fe/attachment.htm>


More information about the petsc-users mailing list