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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/IS/ISCreateSubIS.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>ISCreateSubIS</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/IS/ISCreateSubIS.html "><small>Report Typos and Errors</small></a></div>
<A NAME="ISCreateSubIS"><H1>ISCreateSubIS</H1></A>
Create a sub index set from a global index set selecting some components.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscis.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../IS/ISCreateSubIS.html#ISCreateSubIS">ISCreateSubIS</A>(<A HREF="../IS/IS.html#IS">IS</A> is,<A HREF="../IS/IS.html#IS">IS</A> comps,<A HREF="../IS/IS.html#IS">IS</A> *subis)
</PRE>
Collective on <A HREF="../IS/IS.html#IS">IS</A>
<P>
<H3><FONT COLOR="#CC3333">Input Parmeters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>is </B></TD><TD>- the index set
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>comps </B></TD><TD>- which components we will extract from is
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>subis </B></TD><TD>- the new sub index set
</TD></TR></TABLE>
<P>
<P>
<H3><FONT COLOR="#CC3333">Example usage</FONT></H3>
<H3><FONT COLOR="#CC3333">We have an index set (is) living on 3 processes with the following values</FONT></H3>
| 4 9 0 | 2 6 7 | 10 11 1|
and another index set (comps) used to indicate which components of is we want to take,
| 7 5 | 1 2 | 0 4|
<H3><FONT COLOR="#CC3333">The output index set (subis) should look like</FONT></H3>
| 11 7 | 9 0 | 4 6|
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../Vec/VecGetSubVector.html#VecGetSubVector">VecGetSubVector</A>(), <A HREF="../Mat/MatCreateSubMatrix.html#MatCreateSubMatrix">MatCreateSubMatrix</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/vec/is/is/interface/index.c.html#ISCreateSubIS">src/vec/is/is/interface/index.c</A>
<BR><A HREF="./index.html">Index of all IS 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>
|