[petsc-users] mutiple DA

Panruo Wu pwu at mymail.mines.edu
Sat Jul 7 15:58:02 CDT 2012


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