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/DMSTAG/DMStagMatGetValuesStencil.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>DMStagMatGetValuesStencil</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/DMSTAG/DMStagMatGetValuesStencil.html "><small>Report Typos and Errors</small></a></div>
<A NAME="DMStagMatGetValuesStencil"><H1>DMStagMatGetValuesStencil</H1></A>
retrieve local matrix entries using grid indexing
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../DMSTAG/DMStagMatGetValuesStencil.html#DMStagMatGetValuesStencil">DMStagMatGetValuesStencil</A>(<A HREF="../DM/DM.html#DM">DM</A> dm,<A HREF="../Mat/Mat.html#Mat">Mat</A> mat,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> nRow,const <A HREF="../DMSTAG/DMStagStencil.html#DMStagStencil">DMStagStencil</A> *posRow,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> nCol,const <A HREF="../DMSTAG/DMStagStencil.html#DMStagStencil">DMStagStencil</A> *posCol,<A HREF="../Sys/PetscScalar.html#PetscScalar">PetscScalar</A> *val)
</PRE>
Not Collective
<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 DMStag object
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>mat </B></TD><TD>- the matrix
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>nRow </B></TD><TD>- number of rows
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>posRow </B></TD><TD>- grid locations (including components) of rows
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>nCol </B></TD><TD>- number of columns
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>posCol </B></TD><TD>- grid locations (including components) of columns
</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>val </B></TD><TD>- logically two-dimensional array of values
</TD></TR></TABLE>
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../DMSTAG/DMSTAG.html#DMSTAG">DMSTAG</A>, <A HREF="../DMSTAG/DMStagStencil.html#DMStagStencil">DMStagStencil</A>, <A HREF="../DMSTAG/DMStagStencilLocation.html#DMStagStencilLocation">DMStagStencilLocation</A>, <A HREF="../DMSTAG/DMStagVecGetValuesStencil.html#DMStagVecGetValuesStencil">DMStagVecGetValuesStencil</A>(), <A HREF="../DMSTAG/DMStagVecSetValuesStencil.html#DMStagVecSetValuesStencil">DMStagVecSetValuesStencil</A>(), <A HREF="../DMSTAG/DMStagMatSetValuesStencil.html#DMStagMatSetValuesStencil">DMStagMatSetValuesStencil</A>(), <A HREF="../Mat/MatSetValuesStencil.html#MatSetValuesStencil">MatSetValuesStencil</A>(), <A HREF="../Mat/MatAssemblyBegin.html#MatAssemblyBegin">MatAssemblyBegin</A>(), <A HREF="../Mat/MatAssemblyEnd.html#MatAssemblyEnd">MatAssemblyEnd</A>(), <A HREF="../DM/DMCreateMatrix.html#DMCreateMatrix">DMCreateMatrix</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/impls/stag/stagstencil.c.html#DMStagMatGetValuesStencil">src/dm/impls/stag/stagstencil.c</A>
<BR><A HREF="./index.html">Index of all DMSTAG 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>
|