petsc-3.7.1 2016-05-15
Report Typos and Errors

DMDAGetLogicalCoordinate

Returns a the i,j,k logical coordinate for the closest mesh point to a x,y,z point in the coordinates of the DMDA

Synopsis

#include "petscdmda.h"   
PetscErrorCode  DMDAGetLogicalCoordinate(DM da,PetscScalar x,PetscScalar y,PetscScalar z,PetscInt *II,PetscInt *JJ,PetscInt *KK,PetscScalar *X,PetscScalar *Y,PetscScalar *Z)
Collective on DMDA Many br

Input Parameters

da - the distributed array Many br
x,y,z - the physical coordinates Many br

Output Parameters

II, JJ, KK - the logical coordinate (-1 on processes that do not contain that point) Many br
X, Y, Z, - (optional) the coordinates of the located grid point Many br

Many br

Notes

All processors that share the DMDA must call this with the same coordinate value Many br

Keywords

distributed array, get, processor subset

Level:advanced
Location:
src/dm/impls/da/dasub.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages