File: DMSetFromOptions.html

package info (click to toggle)
petsc 3.14.5%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 266,472 kB
  • sloc: ansic: 680,898; python: 33,303; cpp: 16,324; makefile: 14,022; f90: 13,731; javascript: 10,713; fortran: 9,581; sh: 1,373; xml: 619; objc: 445; csh: 192; pascal: 148; java: 13
file content (87 lines) | stat: -rw-r--r-- 8,124 bytes parent folder | download
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!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/DMSetFromOptions.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMSetFromOptions</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
   <div id="version" align=right><b>petsc-3.14.5 2021-03-03</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.14.5 v3.14.5 docs/manualpages/DM/DMSetFromOptions.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMSetFromOptions"><H1>DMSetFromOptions</H1></A>
sets parameters in a <A HREF="../DM/DM.html#DM">DM</A> from the options database 
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdm.h"          
#include "petscdmlabel.h"     
#include "petscds.h"     
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../DM/DMSetFromOptions.html#DMSetFromOptions">DMSetFromOptions</A>(<A HREF="../DM/DM.html#DM">DM</A> dm)
</PRE>
Collective on dm
<P>
<H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>dm </B></TD><TD>- the <A HREF="../DM/DM.html#DM">DM</A> object to set options for
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Options Database</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_preallocate_only </B></TD><TD>- Only preallocate the matrix for <A HREF="../DM/DMCreateMatrix.html#DMCreateMatrix">DMCreateMatrix</A>(), but do not fill it with zeros
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_vec_type &lt;type&gt;  </B></TD><TD>- type of vector to create inside <A HREF="../DM/DM.html#DM">DM</A>
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_mat_type &lt;type&gt;  </B></TD><TD>- type of matrix to create inside <A HREF="../DM/DM.html#DM">DM</A>
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_is_coloring_type </B></TD><TD>- &lt;global or local&gt;
</TD></TR></TABLE>
<P>
<A HREF="../DMPLEX/DMPLEX.html#DMPLEX">DMPLEX</A> Specific Checks
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_symmetry        </B></TD><TD>- Check that the adjacency information in the mesh is symmetric - <A HREF="../DMPLEX/DMPlexCheckSymmetry.html#DMPlexCheckSymmetry">DMPlexCheckSymmetry</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_skeleton        </B></TD><TD>- Check that each cell has the correct number of vertices (only for homogeneous simplex or tensor meshes) - <A HREF="../DMPLEX/DMPlexCheckSkeleton.html#DMPlexCheckSkeleton">DMPlexCheckSkeleton</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_faces           </B></TD><TD>- Check that the faces of each cell give a vertex order this is consistent with what we expect from the cell type - <A HREF="../DMPLEX/DMPlexCheckFaces.html#DMPlexCheckFaces">DMPlexCheckFaces</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_geometry        </B></TD><TD>- Check that cells have positive volume - <A HREF="../DMPLEX/DMPlexCheckGeometry.html#DMPlexCheckGeometry">DMPlexCheckGeometry</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_pointsf         </B></TD><TD>- Check some necessary conditions for PointSF - <A HREF="../DMPLEX/DMPlexCheckPointSF.html#DMPlexCheckPointSF">DMPlexCheckPointSF</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_interface_cones </B></TD><TD>- Check points on inter-partition interfaces have conforming order of cone points - <A HREF="../DMPLEX/DMPlexCheckInterfaceCones.html#DMPlexCheckInterfaceCones">DMPlexCheckInterfaceCones</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-dm_plex_check_all             </B></TD><TD>- Perform all the checks above
</TD></TR></TABLE>
<P>

<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DM/DMView.html#DMView">DMView</A>(), <A HREF="../DM/DMCreateGlobalVector.html#DMCreateGlobalVector">DMCreateGlobalVector</A>(), <A HREF="../DM/DMCreateInterpolation.html#DMCreateInterpolation">DMCreateInterpolation</A>(), <A HREF="../DM/DMCreateColoring.html#DMCreateColoring">DMCreateColoring</A>(), <A HREF="../DM/DMCreateMatrix.html#DMCreateMatrix">DMCreateMatrix</A>(),
<BR><A HREF="../DMPLEX/DMPlexCheckSymmetry.html#DMPlexCheckSymmetry">DMPlexCheckSymmetry</A>(), <A HREF="../DMPLEX/DMPlexCheckSkeleton.html#DMPlexCheckSkeleton">DMPlexCheckSkeleton</A>(), <A HREF="../DMPLEX/DMPlexCheckFaces.html#DMPlexCheckFaces">DMPlexCheckFaces</A>(), <A HREF="../DMPLEX/DMPlexCheckGeometry.html#DMPlexCheckGeometry">DMPlexCheckGeometry</A>(), <A HREF="../DMPLEX/DMPlexCheckPointSF.html#DMPlexCheckPointSF">DMPlexCheckPointSF</A>(), <A HREF="../DMPLEX/DMPlexCheckInterfaceCones.html#DMPlexCheckInterfaceCones">DMPlexCheckInterfaceCones</A>()
<P>
<P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/dm/interface/dm.c.html#DMSetFromOptions">src/dm/interface/dm.c</A>
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
<A HREF="../../../src/dm/impls/plex/tutorials/ex2.c.html">src/dm/impls/plex/tutorials/ex2.c.html</A><BR>
<A HREF="../../../src/dm/impls/plex/tutorials/ex5.c.html">src/dm/impls/plex/tutorials/ex5.c.html</A><BR>
<A HREF="../../../src/dm/impls/plex/tutorials/ex6.c.html">src/dm/impls/plex/tutorials/ex6.c.html</A><BR>
<A HREF="../../../src/dm/impls/plex/tutorials/ex7.c.html">src/dm/impls/plex/tutorials/ex7.c.html</A><BR>
<A HREF="../../../src/dm/impls/plex/tutorials/ex8.c.html">src/dm/impls/plex/tutorials/ex8.c.html</A><BR>
<A HREF="../../../src/dm/impls/plex/tutorials/ex9.c.html">src/dm/impls/plex/tutorials/ex9.c.html</A><BR>
<A HREF="../../../src/dm/impls/forest/tutorials/ex1.c.html">src/dm/impls/forest/tutorials/ex1.c.html</A><BR>
<A HREF="../../../src/dm/impls/stag/tutorials/ex1.c.html">src/dm/impls/stag/tutorials/ex1.c.html</A><BR>
<A HREF="../../../src/dm/impls/stag/tutorials/ex2.c.html">src/dm/impls/stag/tutorials/ex2.c.html</A><BR>
<A HREF="../../../src/dm/impls/stag/tutorials/ex3.c.html">src/dm/impls/stag/tutorials/ex3.c.html</A><BR>
<A HREF="../../../src/dm/impls/stag/tutorials/ex4.c.html">src/dm/impls/stag/tutorials/ex4.c.html</A><BR>
<P><H3><FONT COLOR="CC3333">Implementations</FONT></H3><A HREF="../../../src/dm/impls/da/dacreate.c.html#DMSetFromOptions_DA">DMSetFromOptions_DA in src/dm/impls/da/dacreate.c</A><BR>
<A HREF="../../../src/dm/impls/forest/forest.c.html#DMSetFromOptions_Forest">DMSetFromOptions_Forest in src/dm/impls/forest/forest.c</A><BR>
<A HREF="../../../src/dm/impls/forest/p4est/pforest.c.html#DMSetFromOptions_pforest">DMSetFromOptions_pforest in src/dm/impls/forest/p4est/pforest.c</A><BR>
<A HREF="../../../src/dm/impls/moab/dmmoab.cxx.html#DMSetFromOptions_Moab">DMSetFromOptions_Moab in src/dm/impls/moab/dmmoab.cxx</A><BR>
<A HREF="../../../src/dm/impls/network/networkcreate.c.html#DMSetFromOptions_Network">DMSetFromOptions_Network in src/dm/impls/network/networkcreate.c</A><BR>
<A HREF="../../../src/dm/impls/patch/patchcreate.c.html#DMSetFromOptions_Patch">DMSetFromOptions_Patch in src/dm/impls/patch/patchcreate.c</A><BR>
<A HREF="../../../src/dm/impls/plex/plexcreate.c.html#DMSetFromOptions_NonRefinement_Plex">DMSetFromOptions_NonRefinement_Plex in src/dm/impls/plex/plexcreate.c</A><BR>
<A HREF="../../../src/dm/impls/plex/plexcreate.c.html#DMSetFromOptions_Plex">DMSetFromOptions_Plex in src/dm/impls/plex/plexcreate.c</A><BR>
<A HREF="../../../src/dm/impls/stag/stag.c.html#DMSetFromOptions_Stag">DMSetFromOptions_Stag in src/dm/impls/stag/stag.c</A><BR>
<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>
</BODY></HTML>