[petsc-users] mutiple DA
Barry Smith
bsmith at mcs.anl.gov
Sat Jul 7 16:10:55 CDT 2012
So long as you have the same boundary types and the same array sizes in the i and j direction they give the same distribution.
Barry
On Jul 7, 2012, at 3:58 PM, Panruo Wu wrote:
> Hello,
>
> If I create 2 DAs with (almost) identical parameters except DA name
> and dof like:
>
> call DMDACreate2d(PETSC_COMM_WORLD, DMDA_BOUNDARY_GHOSTED,
> DMDA_BOUNDARY_GHOSTED, &
> stype, M, N, m, n, dof1, s &
> PETSC_NULL_INTEGER, PETSC_NULL_INTEGER, &
> da1, ierr)
>
>
>
> call DMDACreate2d(PETSC_COMM_WORLD, DMDA_BOUNDARY_GHOSTED,
> DMDA_BOUNDARY_GHOSTED, &
> stype, M, N, m, n, dof2, s &
> PETSC_NULL_INTEGER, PETSC_NULL_INTEGER, &
> da2, ierr)
>
>
> my question is, will the two DAs have the same distribution scheme?
> Specifically,
> will the DMDAGetCorners() give the same results when querying da1 & da2?
>
> Thanks,
> Panruo Wu
More information about the petsc-users
mailing list