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
|
<!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/DMSetRegionDS.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMSetRegionDS</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/DMSetRegionDS.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMSetRegionDS"><H1>DMSetRegionDS</H1></A>
Set the <A HREF="../DM/PetscDS.html#PetscDS">PetscDS</A> for a given mesh region, defined by a <A HREF="../DM/DMLabel.html#DMLabel">DMLabel</A>
<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/DMSetRegionDS.html#DMSetRegionDS">DMSetRegionDS</A>(<A HREF="../DM/DM.html#DM">DM</A> dm, <A HREF="../DM/DMLabel.html#DMLabel">DMLabel</A> label, <A HREF="../IS/IS.html#IS">IS</A> fields, <A HREF="../DM/PetscDS.html#PetscDS">PetscDS</A> ds)
</PRE>
Collective on dm
<P>
<H3><FONT COLOR="#CC3333">Input Parameters</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>
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>label </B></TD><TD>- The <A HREF="../DM/DMLabel.html#DMLabel">DMLabel</A> defining the mesh region, or NULL for the entire mesh
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>fields </B></TD><TD>- The <A HREF="../IS/IS.html#IS">IS</A> containing the <A HREF="../DM/DM.html#DM">DM</A> field numbers for the fields in this DS, or NULL for all fields
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>prob </B></TD><TD>- The <A HREF="../DM/PetscDS.html#PetscDS">PetscDS</A> defined on the given cell
</TD></TR></TABLE>
<P>
Note: If the label has a DS defined, it will be replaced. Otherwise, it will be added to the <A HREF="../DM/DM.html#DM">DM</A>. If DS is replaced,
the fields argument is ignored.
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DM/DMGetRegionDS.html#DMGetRegionDS">DMGetRegionDS</A>(), <A HREF="../DM/DMSetRegionNumDS.html#DMSetRegionNumDS">DMSetRegionNumDS</A>(), <A HREF="../DM/DMGetDS.html#DMGetDS">DMGetDS</A>(), <A HREF="../DM/DMGetCellDS.html#DMGetCellDS">DMGetCellDS</A>()
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>advanced<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/dm/interface/dm.c.html#DMSetRegionDS">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>
</BODY></HTML>
|