[petsc-users] Memory usage with DMDACreate3d and DMDAGetCorners

Matthew Knepley knepley at gmail.com
Tue Nov 10 06:25:49 CST 2015


On Tue, Nov 10, 2015 at 1:33 AM, TAY wee-beng <zonexo at gmail.com> wrote:

> Hi,
>
> I need a subroutine in Fortran to partition a subset of my grid in the 3
> x,y,z directions for MPI. I thought of using DMDACreate3d and
> DMDAGetCorners to get the starting and width of the partitioned grid.
>
> Because I need to partition at every time step and the subset grid changes
> dimension and index at every time step, so I will also need to use
> DMDestroy after each time step
>
> Will that use alot of memory? Will the grid actually be created? So I
> wonder if this DMDACreate3d and DMDestroy calls will take a lot of time.


DMDA just does 1D partitioning in each dimension, so its not that
sophisticated. Is that all you want?

  Matt


>
> --
> Thank you.
>
> Yours sincerely,
>
> TAY wee-beng
>
>


-- 
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/20151110/6366d8be/attachment.html>


More information about the petsc-users mailing list