DMPlexPointGlobalFieldRead — PETSc 3.24.5 documentation

Skip to main content
`Ctrl`+`K`

# DMPlexPointGlobalFieldRead

return read access to a field on a point in global array

## Synopsis

    #include "petscdmplex.h"
    PetscErrorCode DMPlexPointGlobalFieldRead(DM dm, PetscInt point, PetscInt field, const PetscScalar *array, void *ptr)

Not Collective

## Input Parameters

- dm - `DM` defining topological space

- point - topological point

- field - field number

- array - array to index into

## Output Parameter

- ptr - address of read reference to point data, type generic so user can place in structure; returns NULL if global point is not owned

## See Also

DMPlex: Unstructured Grids, `DM`, `DMPLEX`, `DMGetLocalSection()`, `PetscSectionGetOffset()`, `PetscSectionGetDof()`, `DMPlexGetPointGlobal()`, `DMPlexPointLocalRead()`, `DMPlexPointGlobalRef()`

## Level

intermediate

## Location

src/dm/impls/plex/plexpoint.c

## Examples

src/ts/tutorials/ex18.c

Index of all DMPlex routines
Table of Contents for all manual pages
Index of all manual pages