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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMDA/DMDAGetOwnershipRanges.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMDAGetOwnershipRanges</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/DMDA/DMDAGetOwnershipRanges.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMDAGetOwnershipRanges"><H1>DMDAGetOwnershipRanges</H1></A>
Gets the ranges of indices in the x, y and z direction that are owned by each process
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscdmda.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../DMDA/DMDAGetOwnershipRanges.html#DMDAGetOwnershipRanges">DMDAGetOwnershipRanges</A>(<A HREF="../DM/DM.html#DM">DM</A> da,const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *lx[],const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *ly[],const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *lz[])
</PRE>
Not Collective
<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>da </B></TD><TD>- the <A HREF="../DMDA/DMDA.html#DMDA">DMDA</A> object
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>lx </B></TD><TD>- ownership along x direction (optional)
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>ly </B></TD><TD>- ownership along y direction (optional)
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>lz </B></TD><TD>- ownership along z direction (optional)
</TD></TR></TABLE>
<P>
<P>
Note: these correspond to the optional final arguments passed to <A HREF="../DMDA/DMDACreate.html#DMDACreate">DMDACreate</A>(), <A HREF="../DMDA/DMDACreate2d.html#DMDACreate2d">DMDACreate2d</A>(), <A HREF="../DMDA/DMDACreate3d.html#DMDACreate3d">DMDACreate3d</A>()
<P>
In Fortran one must pass in arrays lx, ly, and lz that are long enough to hold the values; the sixth, seventh and
eighth arguments from <A HREF="../DMDA/DMDAGetInfo.html#DMDAGetInfo">DMDAGetInfo</A>()
<P>
In C you should not free these arrays, nor change the values in them. They will only have valid values while the
<A HREF="../DMDA/DMDA.html#DMDA">DMDA</A> they came from still exists (has not been destroyed).
<P>
These numbers are NOT multiplied by the number of dof per node.
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DMDA/DMDAGetCorners.html#DMDAGetCorners">DMDAGetCorners</A>(), <A HREF="../DMDA/DMDAGetGhostCorners.html#DMDAGetGhostCorners">DMDAGetGhostCorners</A>(), <A HREF="../DMDA/DMDACreate.html#DMDACreate">DMDACreate</A>(), <A HREF="../DMDA/DMDACreate1d.html#DMDACreate1d">DMDACreate1d</A>(), <A HREF="../DMDA/DMDACreate2d.html#DMDACreate2d">DMDACreate2d</A>(), <A HREF="../DMDA/DMDACreate3d.html#DMDACreate3d">DMDACreate3d</A>(), <A HREF="../Vec/VecGetOwnershipRanges.html#VecGetOwnershipRanges">VecGetOwnershipRanges</A>()
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/dm/impls/da/da.c.html#DMDAGetOwnershipRanges">src/dm/impls/da/da.c</A>
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
<A HREF="../../../src/dm/tutorials/ex51.c.html">src/dm/tutorials/ex51.c.html</A><BR>
<A HREF="../../../src/ksp/ksp/tutorials/ex42.c.html">src/ksp/ksp/tutorials/ex42.c.html</A><BR>
<A HREF="../../../src/ksp/ksp/tutorials/ex73.c.html">src/ksp/ksp/tutorials/ex73.c.html</A><BR>
<A HREF="../../../src/snes/tutorials/ex28.c.html">src/snes/tutorials/ex28.c.html</A><BR>
<A HREF="../../../src/ts/tutorials/ex10.c.html">src/ts/tutorials/ex10.c.html</A><BR>
<BR><A HREF="./index.html">Index of all DMDA 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>
|