#include "petscdmplex.h" PetscErrorCode DMPlexPointGlobalRead(DM dm,PetscInt point,const PetscScalar *array,const void *ptr)Not Collective
dm | - DM defining topological space | |
point | - topological point | |
array | - array to index into |
ptr | - address of read reference to point data, type generic so user can place in structure; returns NULL if global point is not owned |
const struct { PetscScalar foo,bar,baz; } *ptr;
DMPlexPointGlobalRead(dm,point,array,&ptr);
x = 2*ptr->foo + 3*ptr->bar + 5*ptr->baz;