Skip to main content
Ctrl+K
PETSc 3.24.2 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • PetscSFBcastEnd

PetscSFBcastEnd#

end a broadcast and reduce operation started with PetscSFBcastBegin() or PetscSFBcastWithMemTypeBegin()

Synopsis#

#include "petscsf.h" 
PetscErrorCode PetscSFBcastEnd(PetscSF sf, MPI_Datatype unit, const void *rootdata, void *leafdata, MPI_Op op)

Collective

Input Parameters#

  • sf - star forest

  • unit - data type

  • rootdata - buffer to broadcast

  • op - operation to use for reduction

Output Parameter#

  • leafdata - buffer to be reduced with values from each leaf’s respective root

See Also#

PetscSF - an alternative to low-level MPI calls for data communication, PetscSF, PetscSFSetGraph(), PetscSFReduceEnd()

Level#

intermediate

Location#

src/vec/is/sf/interface/sf.c

Examples#

src/ts/tutorials/ex30.c
src/vec/is/sf/tutorials/ex2.c
src/dm/impls/plex/tutorials/ex15.c
src/dm/impls/plex/tutorials/ex14f90.F90
src/vec/is/sf/tutorials/ex3.c
src/dm/impls/plex/tutorials/ex14.c
src/vec/is/sf/tutorials/ex1.c
src/ts/tutorials/ex11_sa.c
src/vec/is/sf/tutorials/ex1f.F90

Implementations#

PetscSFBcastEnd_Basic() in src/vec/is/sf/impls/basic/sfbasic.c
PetscSFBcastEnd_Window() in src/vec/is/sf/impls/window/sfwindow.c


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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-12-03T04:22:40-0600 (v3.24.2-2-ge206efe3e6a).