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/PC/PCPatchSetComputeOperator.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PCPatchSetComputeOperator</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.10.3 2018-12-18</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.10.3 v3.10.3 docs/manualpages/PC/PCPatchSetComputeOperator.html "><small>Report Typos and Errors</small></a></div>
<A NAME="PCPatchSetComputeOperator"><H1>PCPatchSetComputeOperator</H1></A>
Set the callback used to compute patch matrices
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscpc.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../PC/PCPatchSetComputeOperator.html#PCPatchSetComputeOperator">PCPatchSetComputeOperator</A>(<A HREF="../PC/PC.html#PC">PC</A> pc, <A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> (*func)(<A HREF="../PC/PC.html#PC">PC</A>, <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A>, <A HREF="../Mat/Mat.html#Mat">Mat</A>, <A HREF="../IS/IS.html#IS">IS</A>, <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A>, const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *, void *), void *ctx)
</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>pc </B></TD><TD>- The <A HREF="../PC/PC.html#PC">PC</A>
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>func </B></TD><TD>- The callback
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>ctx </B></TD><TD>- The user context
</TD></TR></TABLE>
<P>
<P>
<H3><FONT COLOR="#CC3333">Note</FONT></H3>
<H3><FONT COLOR="#CC3333">The callback has signature</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>usercomputeop(pc, point, mat, cellIS, n, u, ctx)</B></TD><TD>- + pc - The <A HREF="../PC/PC.html#PC">PC</A>
+ point - The point
+ mat - The patch matrix
+ cellIS - An array of the cell numbers
+ n - The size of g2l
+ g2l - The global to local dof translation table
+ ctx - The user context
and can assume that the matrix entries have been set to zero before the call.
</TD></TR>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
PCPatchGetComputeOperator(), PCPatchSetDiscretisationInfo()
<BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>advanced<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/ksp/pc/impls/patch/pcpatch.c.html#PCPatchSetComputeOperator">src/ksp/pc/impls/patch/pcpatch.c</A>
<BR><A HREF="./index.html">Index of all PC 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>
|