MeshCreateVector

Creates a global vector matching the input section

Synopsis

#include "petscmesh.h"   
PetscErrorCode PETSCDM_DLLEXPORT MeshCreateVector(Mesh mesh, SectionReal section, Vec *vec)
Collective on Mesh

Input Parameters

mesh - the Mesh
section - the Section

Output Parameter

vec -the global vector

Notes: Once this has been created you cannot add additional arrays or vectors to be packed.

See Also

MeshDestroy(), MeshCreate(), MeshGetGlobalIndices()

Level:advanced
Location:
src/dm/mesh/mesh.c
Index of all Mesh routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex37.c.html