Danyang Su <[email protected]> writes:

> Hi Barry,
>
> Another question is about DMDAGetLocalBoundingBox in fortran.
>
> PetscErrorCode  DMDAGetLocalBoundingBox(DM da,PetscReal lmin[],PetscReal 
> lmax[])
>
> The first value of lmin and lmax (lmin(0)) are always zero,  

lmin and lmax are normal arrays of length 3.  In Fortran, you don't
access lmin(0).

> and lmin(1), lmin(2), and lmin(3) are for x, y, and z dimension,
> respectively.  And the returned value is index (local node index in x,
> y, z dim), not the coordinate. Correct?

It is the coordinate value, assuming you have set DMSetCoordinates.

Attachment: pgpYAjBHnqyOY.pgp
Description: PGP signature

Reply via email to