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
  • PetscSFDuplicate

PetscSFDuplicate#

duplicate a PetscSF, optionally preserving rank connectivity and graph

Synopsis#

#include "petscsf.h" 
PetscErrorCode PetscSFDuplicate(PetscSF sf, PetscSFDuplicateOption opt, PetscSF *newsf)

Collective

Input Parameters#

  • sf - communication object to duplicate

  • opt - PETSCSF_DUPLICATE_CONFONLY, PETSCSF_DUPLICATE_RANKS, or PETSCSF_DUPLICATE_GRAPH (see PetscSFDuplicateOption)

Output Parameter#

  • newsf - new communication object

See Also#

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

Level#

beginner

Location#

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

Implementations#

PetscSFDuplicate_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
  • 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-12T04:21:26-0600 (v3.24.2-12-ga05dba37e7d6).