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 60 61 62 63 64 65 66 67
|
<!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/PCPatchSetComputeFunctionInteriorFacets.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PCPatchSetComputeFunctionInteriorFacets</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/PC/PCPatchSetComputeFunctionInteriorFacets.html "><small>Report Typos and Errors</small></a></div>
<A NAME="PCPatchSetComputeFunctionInteriorFacets"><H1>PCPatchSetComputeFunctionInteriorFacets</H1></A>
Set the callback used to compute facet integrals for patch residuals
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscpc.h"
#include "petscmat.h"
<A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../PC/PCPatchSetComputeFunctionInteriorFacets.html#PCPatchSetComputeFunctionInteriorFacets">PCPatchSetComputeFunctionInteriorFacets</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="../Vec/Vec.html#Vec">Vec</A>, <A HREF="../Vec/Vec.html#Vec">Vec</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> *, const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> *, void *), void *ctx)
</PRE>
Logically collective on <A HREF="../PC/PC.html#PC">PC</A>
<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>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>
<H3><FONT COLOR="#CC3333">Calling sequence of func</FONT></H3>
<pre>
func (<A HREF="../PC/PC.html#PC">PC</A> pc,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> point,<A HREF="../Vec/Vec.html#Vec">Vec</A> x,<A HREF="../Vec/Vec.html#Vec">Vec</A> f,<A HREF="../IS/IS.html#IS">IS</A> facetIS,<A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A> n,const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A>* dofsArray,const <A HREF="../Sys/PetscInt.html#PetscInt">PetscInt</A>* dofsArrayWithAll,void* ctx)
</pre>
<P>
<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>point </B></TD><TD>- The point
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>x </B></TD><TD>- The input solution (not used in linear problems)
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>f </B></TD><TD>- The patch residual vector
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>facetIS </B></TD><TD>- An array of the facet numbers
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>n </B></TD><TD>- The size of dofsArray
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>dofsArray </B></TD><TD>- The dofmap for the dofs to be solved for
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>dofsArrayWithAll </B></TD><TD>- The dofmap for all dofs on the patch
</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">Notes</FONT></H3>
The entries of F (the output residual vector) have been set to zero before the call.
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../PC/PCPatchSetComputeOperator.html#PCPatchSetComputeOperator">PCPatchSetComputeOperator</A>(), PCPatchGetComputeOperator(), PCPatchSetDiscretisationInfo(), <A HREF="../PC/PCPatchSetComputeFunction.html#PCPatchSetComputeFunction">PCPatchSetComputeFunction</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/ksp/pc/impls/patch/pcpatch.c.html#PCPatchSetComputeFunctionInteriorFacets">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>
|