[petsc-users] mutiple DA
Panruo Wu
pwu at mymail.mines.edu
Sat Jul 14 14:30:59 CDT 2012
Thank you Barry!
Panruo
On Sat, Jul 7, 2012 at 3:10 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120714/c15cc1c3/attachment.html>
More information about the petsc-users
mailing list