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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MATMFFD_WP.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MATMFFD_WP</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>
<A NAME="MATMFFD_WP"><H1>MATMFFD_WP</H1></A>
Implements an alternative approach for computing the differencing parameter h used with the finite difference based matrix-free Jacobian. This code implements the strategy of M. Pernice and H. Walker: h = error_rel * sqrt(1 + ||U||) / ||a||
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
1) || U || does not change between linear iterations so is reused
2) In GMRES || a || == 1 and so does not need to ever be computed except at restart
when it is recomputed.
<P>
Reference: M. Pernice and H. F. Walker, "NITSOL: A Newton Iterative
Solver for Nonlinear Systems", SIAM J. Sci. Stat. Comput.", 1998,
vol 19, pp. 302--318.
<P>
<H3><FONT COLOR="#CC3333">Options Database Keys</FONT></H3>
<DT><B>-mat_mffd_compute_normu </B> -Compute the norm of u everytime see <A HREF="../Mat/MatMFFDWPSetComputeNormU.html#MatMFFDWPSetComputeNormU">MatMFFDWPSetComputeNormU</A>()
<br>
<P>
<P>
<P>
Notes: Requires no global collectives when used with GMRES
<P>
<H3><FONT COLOR="#CC3333">Formula used</FONT></H3>
F'(u)*a = [F(u+h*a) - F(u)]/h where
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../Mat/MATMFFD.html#MATMFFD">MATMFFD</A>, <A HREF="../Mat/MatCreateMFFD.html#MatCreateMFFD">MatCreateMFFD</A>(), <A HREF="../SNES/MatCreateSNESMF.html#MatCreateSNESMF">MatCreateSNESMF</A>(), <A HREF="../Mat/MATMFFD_DS.html#MATMFFD_DS">MATMFFD_DS</A>
<BR>
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>intermediate
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/mat/impls/mffd/wp.c.html#MATMFFD_WP">src/mat/impls/mffd/wp.c</A>
<BR><A HREF="./index.html">Index of all Mat 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>
|