Skip to main content
Ctrl+K
PETSc 3.23.4 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
  • DMCompositeCreate

DMCompositeCreate#

Creates a DMCOMPOSITE, used to generate “composite” vectors made up of several subvectors.

Synopsis#

#include "petscdmcomposite.h"  
PetscErrorCode DMCompositeCreate(MPI_Comm comm, DM *packer)

Collective

Input Parameter#

  • comm - the processors that will share the global vector

Output Parameter#

  • packer - the DMCOMPOSITE object

See Also#

DMCOMPOSITE, DM, DMDestroy(), DMCompositeAddDM(), DMCompositeScatter(), DMCreate() DMCompositeGather(), DMCreateGlobalVector(), DMCompositeGetISLocalToGlobalMappings(), DMCompositeGetAccess() DMCompositeGetLocalVectors(), DMCompositeRestoreLocalVectors(), DMCompositeGetEntries()

Level#

advanced

Location#

src/dm/impls/composite/pack.c

Examples#

src/snes/tutorials/ex21.c
src/snes/tutorials/ex22.c
src/snes/tutorials/ex73f90t.F90
src/ts/tutorials/ex14.c
src/snes/tutorials/ex28.c


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

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
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-07-11T04:21:02-0500 (v3.23.4-21-g908f99941a91).