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
|
<!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/DMCreateSectionSF.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMCreateSectionSF</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/DMCreateSectionSF.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMCreateSectionSF"><H1>DMCreateSectionSF</H1></A>
Create the <A HREF="../PetscSF/PetscSF.html#PetscSF">PetscSF</A> encoding the parallel dof overlap for the <A HREF="../DM/DM.html#DM">DM</A> based upon the PetscSections describing the data layout.
<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/DMCreateSectionSF.html#DMCreateSectionSF">DMCreateSectionSF</A>(<A HREF="../DM/DM.html#DM">DM</A> dm, <A HREF="../PetscSection/PetscSection.html#PetscSection">PetscSection</A> localSection, <A HREF="../PetscSection/PetscSection.html#PetscSection">PetscSection</A> globalSection)
</PRE>
<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>localSection </B></TD><TD>- <A HREF="../PetscSection/PetscSection.html#PetscSection">PetscSection</A> describing the local data layout
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>globalSection </B></TD><TD>- <A HREF="../PetscSection/PetscSection.html#PetscSection">PetscSection</A> describing the global data layout
</TD></TR></TABLE>
<P>
Notes: One usually uses <A HREF="../DM/DMGetSectionSF.html#DMGetSectionSF">DMGetSectionSF</A>() to obtain the <A HREF="../PetscSF/PetscSF.html#PetscSF">PetscSF</A>
<P>
<P>
Developer Note: Since this routine has for arguments the two sections from the <A HREF="../DM/DM.html#DM">DM</A> and puts the resulting <A HREF="../PetscSF/PetscSF.html#PetscSF">PetscSF</A>
directly into the <A HREF="../DM/DM.html#DM">DM</A>, perhaps this function should not take the local and global sections as
input and should just obtain them from the <A HREF="../DM/DM.html#DM">DM</A>?
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DM/DMGetSectionSF.html#DMGetSectionSF">DMGetSectionSF</A>(), <A HREF="../DM/DMSetSectionSF.html#DMSetSectionSF">DMSetSectionSF</A>(), <A HREF="../DM/DMGetLocalSection.html#DMGetLocalSection">DMGetLocalSection</A>(), <A HREF="../DM/DMGetGlobalSection.html#DMGetGlobalSection">DMGetGlobalSection</A>()
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>developer<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/dm/interface/dm.c.html#DMCreateSectionSF">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>
|