[petsc-users] DMDAGetLocalInfo Python Equivalent

Smith, Barry F. bsmith at mcs.anl.gov
Sun Dec 2 18:14:39 CST 2018



> On Dec 2, 2018, at 2:41 PM, Jacob Oest via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Dear all,
> 
> I am trying to port some c++ code to python using, and I need the information provided by DMDAGetLocalInfo, i.e.:
> 
> mx,my,mz; global number of grid points in each direction

   DMDAGetInfo()

> xs,ys,zs; starting point of this processor, excluding ghosts
> xm,ym,zm; number of grid points on this processor, excluding ghosts

   DMDAGetCorners()

> gxs,gys,gzs; starting point of this processor including ghosts
> gxm,gym,gzm; number of grid points on this processor including ghosts

   DMDAGetGhostCorners()
> 
> Anyone know how to get all of this information in Python?
> 
> Thx in advance!



More information about the petsc-users mailing list