[petsc-users] DM arbitrary assignment of ranks
Matthew Knepley
knepley at gmail.com
Wed Apr 3 16:49:22 CDT 2013
On Thu, Apr 4, 2013 at 8:24 AM, Carlos Pachajoa <cpachaj at gmail.com> wrote:
> Hello,
>
> I'm working on a CFD simulator that will be
> used for educational purposes.
>
> I'm using PETSc to solve a Poisson equation for the pressure, using DM and
> a 5-point stencil. I would like to extend it to work on parallel.
>
> Since the code will also be used to teach some fundamental concepts of
> parallel programming, it would be ideal if the user can set which rank
> deals with each subdomain. Out of the DM, one can obtain the corners of the
> region corresponding to a rank, however, I have not found a function to
> assign a processor to a region. I know that you can assign a set of rows to
> any processor when explicitly setting the columns of a matrix, but I wonder
> if this is also possible using DM.
>
The DMDA prescribes a process layout grid which you can set yourself using
the lx,ly,lz arguments to the constructor.
Matt
> Thank you for your time and your hints.
>
> Best regards,
>
> Carlos
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130404/7f1610cf/attachment-0001.html>
More information about the petsc-users
mailing list