petsc-3.7.1 2016-05-15
Report Typos and Errors

PetscLayoutReference

Causes a PETSc Vec or Mat to share a PetscLayout with one that already exists. Used by Vec/MatDuplicate_XXX()

Synopsis

#include "petscis.h" 
PetscErrorCode PetscLayoutReference(PetscLayout in,PetscLayout *out)
Collective on PetscLayout Many br

Input Parameter

in -input PetscLayout to be copied Many br

Output Parameter

out -the reference location Many br

Many br

Notes: PetscLayoutSetUp() does not need to be called on the resulting PetscLayout Many br

If the out location already contains a PetscLayout it is destroyed Many br

See Also

PetscLayoutCreate(), PetscLayoutDestroy(), PetscLayoutSetUp(), PetscLayoutDuplicate()

Level:developer
Location:
src/vec/is/utils/pmap.c
Index of all IS routines
Table of Contents for all manual pages
Index of all manual pages