PetscSFDirection — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscSFDirection

Direction in which a `PetscSF` communication is performed

## Synopsis

    typedef enum {
      PETSCSF_ROOT2LEAF = 0,
      PETSCSF_LEAF2ROOT = 1
    } PetscSFDirection;

## Values

- `PETSCSF_ROOT2LEAF` - data flows from roots to leaves (broadcast direction)

- `PETSCSF_LEAF2ROOT` - data flows from leaves to roots (reduce/fetch direction)

## See Also

PetscSF - an alternative to low-level MPI calls for data communication, `PetscSF`, `PetscSFOperation`, `PetscSFBcastBegin()`, `PetscSFReduceBegin()`

## Level

developer

## Location

include/petscsftypes.h

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