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 42 43
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreate.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMCreate</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.7.5 2017-01-01</b></div>
<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.7.5 v3.7.5 docs/manualpages/DM/DMCreate.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMCreate"><H1>DMCreate</H1></A>
Creates an empty <A HREF="../DM/DM.html#DM">DM</A> object. The type can then be set with <A HREF="../DM/DMSetType.html#DMSetType">DMSetType</A>().
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdm.h"
#include "petscdmlabel.h"
PetscErrorCode DMCreate(MPI_Comm comm,DM *dm)
</PRE>
If you never call <A HREF="../DM/DMSetType.html#DMSetType">DMSetType</A>() it will generate an
error when you try to use the vector.
<P>
Collective on <A HREF="../Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</A>
<P>
<H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
<DT><B>comm </B> -The communicator for the <A HREF="../DM/DM.html#DM">DM</A> object
<br>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<DT><B>dm </B> -The <A HREF="../DM/DM.html#DM">DM</A> object
<br>
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DM/DMSetType.html#DMSetType">DMSetType</A>(), <A HREF="../DM/DMDA.html#DMDA">DMDA</A>, <A HREF="../DM/DMSLICED.html#DMSLICED">DMSLICED</A>, <A HREF="../DM/DMCOMPOSITE.html#DMCOMPOSITE">DMCOMPOSITE</A>, <A HREF="../DM/DMPLEX.html#DMPLEX">DMPLEX</A>, <A HREF="../DM/DMMOAB.html#DMMOAB">DMMOAB</A>, <A HREF="../DM/DMNETWORK.html#DMNETWORK">DMNETWORK</A>
<BR><P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>beginner
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/dm/interface/dm.c.html#DMCreate">src/dm/interface/dm.c</A>
<BR><A HREF="./index.html">Index of all DM 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>
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
<A HREF="../../../src/dm/impls/forest/examples/tutorials/ex1.c.html">src/dm/impls/forest/examples/tutorials/ex1.c.html</A><BR>
<A HREF="../../../src/ts/examples/tutorials/ex11.c.html">src/ts/examples/tutorials/ex11.c.html</A><BR>
</BODY></HTML>
|