PETSc version 3.16.5
Fix/Edit manual page

# PetscSFNode

specifier of owner and index

### Synopsis

    typedef struct {
      PetscInt rank;                /* Rank of owner */
      PetscInt index;               /* Index of node on rank */
    } PetscSFNode;

### Sample Usage

         PetscSFNode    *remote;

       ierr = PetscMalloc1(nleaves,&remote);CHKERRQ(ierr);

       for (i=0; i<size; i++) {

         remote[i].rank = i;

         remote[i].index = rank;

       }

### Sample Fortran Usage

        type(PetscSFNode) remote(6)

         remote(1)%rank  = modulo(rank+size-1,size)

         remote(1)%index = 1 * stride

### See Also

PetscSFSetGraph()

### Level

beginner

### Location

src/vec/is/sf/../../../../include/petscsftypes.h

### Examples

src/vec/is/sf/tutorials/ex1f.F90.html
Index of all PetscSF routines
Table of Contents for all manual pages
Index of all manual pages