"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.4/docs/manualpages/Vec/VecDuplicate.html" (4 Feb 2020, 5807 Bytes) of package /linux/misc/petsc-3.12.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
    2 <HTML>
    3 <HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecDuplicate.html" />
    4 <META NAME="GENERATOR" CONTENT="DOCTEXT">
    5 <TITLE>VecDuplicate</TITLE>
    6 </HEAD>
    7 <BODY BGCOLOR="FFFFFF">
    8    <div id="version" align=right><b>petsc-3.12.4 2020-02-04</b></div>
    9    <div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.12.4 v3.12.4 docs/manualpages/Vec/VecDuplicate.html "><small>Report Typos and Errors</small></a></div>
   10 <A NAME="VecDuplicate"><H1>VecDuplicate</H1></A>
   11 Creates a new vector of the same type as an existing vector. 
   12 <H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
   13 <PRE>
   14 #include "petscvec.h"   
   15 <A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A>  <A HREF="../Vec/VecDuplicate.html#VecDuplicate">VecDuplicate</A>(<A HREF="../Vec/Vec.html#Vec">Vec</A> v,<A HREF="../Vec/Vec.html#Vec">Vec</A> *newv)
   16 </PRE>
   17 Collective on <A HREF="../Vec/Vec.html#Vec">Vec</A>
   18 <P>
   19 <H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
   20 <DT><B>v </B> -a vector to mimic
   21 <br>
   22 <P>
   23 <H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
   24 <DT><B>newv </B> -location to put new vector
   25 <br>
   26 <P>
   27 <H3><FONT COLOR="#CC3333">Notes</FONT></H3>
   28 <A HREF="../Vec/VecDuplicate.html#VecDuplicate">VecDuplicate</A>() DOES NOT COPY the vector entries, but rather allocates storage
   29 for the new vector.  Use <A HREF="../Vec/VecCopy.html#VecCopy">VecCopy</A>() to copy a vector.
   30 <P>
   31 Use <A HREF="../Vec/VecDestroy.html#VecDestroy">VecDestroy</A>() to free the space. Use <A HREF="../Vec/VecDuplicateVecs.html#VecDuplicateVecs">VecDuplicateVecs</A>() to get several
   32 vectors.
   33 <P>
   34 
   35 <P>
   36 <H3><FONT COLOR="#CC3333">See Also</FONT></H3>
   37  <A HREF="../Vec/VecDestroy.html#VecDestroy">VecDestroy</A>(), <A HREF="../Vec/VecDuplicateVecs.html#VecDuplicateVecs">VecDuplicateVecs</A>(), <A HREF="../Vec/VecCreate.html#VecCreate">VecCreate</A>(), <A HREF="../Vec/VecCopy.html#VecCopy">VecCopy</A>()
   38 <BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>beginner<BR>
   39 <H3><FONT COLOR="#CC3333">Location</FONT></H3>
   40 </B><A HREF="../../../src/vec/vec/interface/vector.c.html#VecDuplicate">src/vec/vec/interface/vector.c</A>
   41 <P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
   42 <A HREF="../../../src/vec/vec/examples/tutorials/ex1.c.html">src/vec/vec/examples/tutorials/ex1.c.html</A><BR>
   43 <A HREF="../../../src/vec/vec/examples/tutorials/ex9.c.html">src/vec/vec/examples/tutorials/ex9.c.html</A><BR>
   44 <A HREF="../../../src/vec/vec/examples/tutorials/ex16.c.html">src/vec/vec/examples/tutorials/ex16.c.html</A><BR>
   45 <A HREF="../../../src/vec/vec/examples/tutorials/ex18.c.html">src/vec/vec/examples/tutorials/ex18.c.html</A><BR>
   46 <A HREF="../../../src/vec/vec/examples/tutorials/ex1f.F90.html">src/vec/vec/examples/tutorials/ex1f.F90.html</A><BR>
   47 <A HREF="../../../src/vec/vec/examples/tutorials/ex1f90.F90.html">src/vec/vec/examples/tutorials/ex1f90.F90.html</A><BR>
   48 <A HREF="../../../src/vec/vec/examples/tutorials/ex4f.F.html">src/vec/vec/examples/tutorials/ex4f.F.html</A><BR>
   49 <A HREF="../../../src/vec/vec/examples/tutorials/ex4f90.F90.html">src/vec/vec/examples/tutorials/ex4f90.F90.html</A><BR>
   50 <A HREF="../../../src/vec/vec/examples/tutorials/ex9f.F90.html">src/vec/vec/examples/tutorials/ex9f.F90.html</A><BR>
   51 <A HREF="../../../src/vec/vec/examples/tutorials/ex14f.F90.html">src/vec/vec/examples/tutorials/ex14f.F90.html</A><BR>
   52 <A HREF="../../../src/vec/vec/examples/tutorials/ex16f.F90.html">src/vec/vec/examples/tutorials/ex16f.F90.html</A><BR>
   53 <P><H3><FONT COLOR="CC3333">Implementations</FONT></H3><A HREF="../../../src/dm/impls/da/dadist.c.html#VecDuplicate_MPI_DA">VecDuplicate_MPI_DA in src/dm/impls/da/dadist.c</A><BR>
   54 <A HREF="../../../src/mat/impls/fft/fftw/fftw.c.html#VecDuplicate_FFTW_fin">VecDuplicate_FFTW_fin in src/mat/impls/fft/fftw/fftw.c</A><BR>
   55 <A HREF="../../../src/mat/impls/fft/fftw/fftw.c.html#VecDuplicate_FFTW_fout">VecDuplicate_FFTW_fout in src/mat/impls/fft/fftw/fftw.c</A><BR>
   56 <A HREF="../../../src/mat/impls/fft/fftw/fftw.c.html#VecDuplicate_FFTW_bout">VecDuplicate_FFTW_bout in src/mat/impls/fft/fftw/fftw.c</A><BR>
   57 <A HREF="../../../src/vec/vec/impls/mpi/mpicuda/mpicuda.cu.html#VecDuplicate_MPICUDA">VecDuplicate_MPICUDA in src/vec/vec/impls/mpi/mpicuda/mpicuda.cu</A><BR>
   58 <A HREF="../../../src/vec/vec/impls/mpi/mpiviennacl/mpiviennacl.cxx.html#VecDuplicate_MPIViennaCL">VecDuplicate_MPIViennaCL in src/vec/vec/impls/mpi/mpiviennacl/mpiviennacl.cxx</A><BR>
   59 <A HREF="../../../src/vec/vec/impls/mpi/pbvec.c.html#VecDuplicate_MPI">VecDuplicate_MPI in src/vec/vec/impls/mpi/pbvec.c</A><BR>
   60 <A HREF="../../../src/vec/vec/impls/nest/vecnest.c.html#VecDuplicate_Nest">VecDuplicate_Nest in src/vec/vec/impls/nest/vecnest.c</A><BR>
   61 <A HREF="../../../src/vec/vec/impls/node/vecnode.c.html#VecDuplicate_Node">VecDuplicate_Node in src/vec/vec/impls/node/vecnode.c</A><BR>
   62 <A HREF="../../../src/vec/vec/impls/seq/bvec2.c.html#VecDuplicate_Seq">VecDuplicate_Seq in src/vec/vec/impls/seq/bvec2.c</A><BR>
   63 <A HREF="../../../src/vec/vec/impls/seq/seqcuda/veccuda.c.html#VecDuplicate_SeqCUDA">VecDuplicate_SeqCUDA in src/vec/vec/impls/seq/seqcuda/veccuda.c</A><BR>
   64 <A HREF="../../../src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx.html#VecDuplicate_SeqViennaCL">VecDuplicate_SeqViennaCL in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx</A><BR>
   65 <A HREF="../../../src/vec/vec/impls/shared/shvec.c.html#VecDuplicate_Shared">VecDuplicate_Shared in src/vec/vec/impls/shared/shvec.c</A><BR>
   66 <BR><A HREF="./index.html">Index of all Vec routines</A>
   67 <BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
   68 <BR><A HREF="../singleindex.html">Index of all manual pages</A>
   69 </BODY></HTML>