1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PetscLayoutCopy</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="PetscLayoutCopy"><H1>PetscLayoutCopy</H1></A>
creates a new <A HREF="../Vec/PetscLayout.html#PetscLayout">PetscLayout</A> with the same information as a given one. If the <A HREF="../Vec/PetscLayout.html#PetscLayout">PetscLayout</A> already exists it is destroyed first.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscvec.h"
PetscErrorCode PETSCVEC_DLLEXPORT PetscLayoutCopy(PetscLayout in,PetscLayout *out)
</PRE>
Collective on <A HREF="../Vec/PetscLayout.html#PetscLayout">PetscLayout</A>
<P>
<H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
<DT><B>in </B> -input <A HREF="../Vec/PetscLayout.html#PetscLayout">PetscLayout</A> to be copied
<br>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>out </B> -the copy
<br>
<P>
<P>
Notes: <A HREF="../Vec/PetscLayoutSetUp.html#PetscLayoutSetUp">PetscLayoutSetUp</A>() does not need to be called on the resulting <A HREF="../Vec/PetscLayout.html#PetscLayout">PetscLayout</A>
<P>
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 <A HREF="../Vec/PetscLayoutCopy.html#PetscLayoutCopy">PetscLayoutCopy</A>() that truely copies the data and does not delete the old object.
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../Vec/PetscLayoutCreate.html#PetscLayoutCreate">PetscLayoutCreate</A>(), <A HREF="../Vec/PetscLayoutDestroy.html#PetscLayoutDestroy">PetscLayoutDestroy</A>(), <A HREF="../Vec/PetscLayoutSetUp.html#PetscLayoutSetUp">PetscLayoutSetUp</A>()
<BR>
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>developer
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/vec/vec/impls/mpi/pmap.c.html#PetscLayoutCopy">src/vec/vec/impls/mpi/pmap.c</A>
<BR><A HREF="./index.html">Index of all Vec routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|