PetscLayoutCopy

creates a new PetscLayout with the same information as a given one. If the PetscLayout already exists it is destroyed first.

Synopsis

#include "petscvec.h"   
PetscErrorCode PETSCVEC_DLLEXPORT PetscLayoutCopy(PetscLayout in,PetscLayout *out)
Collective on PetscLayout

Input Parameter

in -input PetscLayout to be copied

Output Parameter

out -the copy

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

Developer Note: Unlike all other copy routines this destroys any input object and makes a new one. This routine should be fixed to have a PetscLayoutDuplicate() that ONLY creates a new one and a PetscLayoutCopy() that truely copies the data and does not delete the old object.

See Also

PetscLayoutCreate(), PetscLayoutDestroy(), PetscLayoutSetUp()

Level:developer
Location:
src/vec/vec/impls/mpi/pmap.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages