"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.4/docs/manualpages/Sys/PetscObjectComposeFunction.html" (4 Feb 2020, 3473 Bytes) of package /linux/misc/petsc-3.12.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
    2 <HTML>
    3 <HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscObjectComposeFunction.html" />
    4 <META NAME="GENERATOR" CONTENT="DOCTEXT">
    5 <TITLE>PetscObjectComposeFunction</TITLE>
    6 </HEAD>
    7 <BODY BGCOLOR="FFFFFF">
    8    <div id="version" align=right><b>petsc-3.12.4 2020-02-04</b></div>
    9    <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.12.4 v3.12.4 docs/manualpages/Sys/PetscObjectComposeFunction.html "><small>Report Typos and Errors</small></a></div>
   10 <A NAME="PetscObjectComposeFunction"><H1>PetscObjectComposeFunction</H1></A>
   11 Associates a function with a given PETSc object. 
   12 <H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
   13 <PRE>
   14 #include &lt;petscsys.h&gt;
   15 <A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../Sys/PetscObjectComposeFunction.html#PetscObjectComposeFunction">PetscObjectComposeFunction</A>(<A HREF="../Sys/PetscObject.html#PetscObject">PetscObject</A> obj,const char name[],void (*fptr)(void))
   16 </PRE>
   17 Logically Collective on <A HREF="../Sys/PetscObject.html#PetscObject">PetscObject</A>
   18 <P>
   19 <H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
   20 <TABLE border="0" cellpadding="0" cellspacing="0">
   21 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>obj </B></TD><TD>- the PETSc object; this must be cast with a (<A HREF="../Sys/PetscObject.html#PetscObject">PetscObject</A>), for example,
   22 <A HREF="../Sys/PetscObjectCompose.html#PetscObjectCompose">PetscObjectCompose</A>((<A HREF="../Sys/PetscObject.html#PetscObject">PetscObject</A>)mat,...);
   23 </TD></TR>
   24 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>name </B></TD><TD>- name associated with the child function
   25 </TD></TR>
   26 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>fname </B></TD><TD>- name of the function
   27 </TD></TR>
   28 <TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>fptr </B></TD><TD>- function pointer
   29 </TD></TR></TABLE>
   30 <P>
   31 
   32 <P>
   33 <H3><FONT COLOR="#CC3333">Notes</FONT></H3>
   34 To remove a registered routine, pass in NULL for fptr().
   35 <P>
   36 <A HREF="../Sys/PetscObjectComposeFunction.html#PetscObjectComposeFunction">PetscObjectComposeFunction</A>() can be used with any PETSc object (such as
   37 <A HREF="../Mat/Mat.html#Mat">Mat</A>, <A HREF="../Vec/Vec.html#Vec">Vec</A>, <A HREF="../KSP/KSP.html#KSP">KSP</A>, <A HREF="../SNES/SNES.html#SNES">SNES</A>, etc.) or any user-provided object.
   38 <P>
   39 <H3><FONT COLOR="#CC3333">See Also</FONT></H3>
   40  <A HREF="../Sys/PetscObjectQueryFunction.html#PetscObjectQueryFunction">PetscObjectQueryFunction</A>(), <A HREF="../Sys/PetscContainerCreate.html#PetscContainerCreate">PetscContainerCreate</A>()
   41 <BR><P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>advanced<BR>
   42 <H3><FONT COLOR="#CC3333">Location</FONT></H3>
   43 </B><A HREF="../../../src/sys/objects/inherit.c.html#PetscObjectComposeFunction">src/sys/objects/inherit.c</A>
   44 <P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
   45 <A HREF="../../../src/mat/examples/tutorials/ex8.c.html">src/mat/examples/tutorials/ex8.c.html</A><BR>
   46 <A HREF="../../../src/ksp/ksp/examples/tutorials/ex73.c.html">src/ksp/ksp/examples/tutorials/ex73.c.html</A><BR>
   47 <BR><A HREF="./index.html">Index of all Sys routines</A>
   48 <BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
   49 <BR><A HREF="../singleindex.html">Index of all manual pages</A>
   50 </BODY></HTML>