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
|
<!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/ISSetBlockSize.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>ISSetBlockSize</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/ISSetBlockSize.html "><small>Report Typos and Errors</small></a></div>
<A NAME="ISSetBlockSize"><H1>ISSetBlockSize</H1></A>
informs an index set that it has a given block size
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscis.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../IS/ISSetBlockSize.html#ISSetBlockSize">ISSetBlockSize</A>(<A HREF="../IS/IS.html#IS">IS</A> is,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> bs)
</PRE>
Logicall Collective on <A HREF="../IS/IS.html#IS">IS</A>
<P>
<H3><FONT COLOR="#CC3333">Input Arguments</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>is </B></TD><TD>- index set
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>bs </B></TD><TD>- block size
</TD></TR></TABLE>
<P>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
This is much like the block size for <A HREF="../Vec/Vecs.html#Vecs">Vecs</A>. It indicates that one can think of the indices as
being in a collection of equal size blocks. For ISBlock() these collections of blocks are all contiquous
within a block but this is not the case for other <A HREF="../IS/IS.html#IS">IS</A>.
<A HREF="../IS/ISBlockGetIndices.html#ISBlockGetIndices">ISBlockGetIndices</A>() only works for ISBlock <A HREF="../IS/IS.html#IS">IS</A>, not others.
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../IS/ISGetBlockSize.html#ISGetBlockSize">ISGetBlockSize</A>(), <A HREF="../IS/ISCreateBlock.html#ISCreateBlock">ISCreateBlock</A>(), <A HREF="../IS/ISBlockGetIndices.html#ISBlockGetIndices">ISBlockGetIndices</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#ISSetBlockSize">src/vec/is/is/interface/index.c</A>
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
<A HREF="../../../src/ksp/ksp/tutorials/ex49.c.html">src/ksp/ksp/tutorials/ex49.c.html</A><BR>
<A HREF="../../../src/ksp/ksp/tutorials/ex73.c.html">src/ksp/ksp/tutorials/ex73.c.html</A><BR>
<P><H3><FONT COLOR="CC3333">Implementations</FONT></H3><A HREF="../../../src/vec/is/is/impls/block/block.c.html#ISSetBlockSize_Block">ISSetBlockSize_Block in src/vec/is/is/impls/block/block.c</A><BR>
<A HREF="../../../src/vec/is/is/impls/general/general.c.html#ISSetBlockSize_General">ISSetBlockSize_General in src/vec/is/is/impls/general/general.c</A><BR>
<A HREF="../../../src/vec/is/is/impls/stride/stride.c.html#ISSetBlockSize_Stride">ISSetBlockSize_Stride in src/vec/is/is/impls/stride/stride.c</A><BR>
<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>
|