Skip to main content
Ctrl+K
PETSc 3.21.6 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
  • DMRestoreGlo...

DMRestoreGlobalVector#

Returns a PETSc vector that obtained from DMGetGlobalVector(). Do not use with vector obtained via DMCreateGlobalVector().

Synopsis#

#include "petscdm.h" 
PetscErrorCode DMRestoreGlobalVector(DM dm, Vec *g)

Not Collective

Input Parameters#

  • dm - the DM

  • g - the global vector

See Also#

DM, DMCreateGlobalVector(), VecDuplicate(), VecDuplicateVecs(), DMDACreate1d(), DMDACreate2d(), DMDACreate3d(), DMGlobalToGlobalBegin(), DMGlobalToGlobalEnd(), DMGlobalToGlobal(), DMCreateLocalVector(), DMGetGlobalVector(), DMClearGlobalVectors()

Level#

beginner

Location#

src/dm/interface/dmget.c

Examples#

src/dm/tutorials/ex12.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/impls/plex/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex7.c
src/ksp/ksp/tutorials/ex73.c
src/dm/tutorials/ex14.c
src/dm/tutorials/ex11f90.F90
src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex1f90.F90
src/dm/tutorials/ex51.c


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

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

© Copyright 1991-2024, 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 2024-09-28T12:51:19-0500 (v3.21.6).