File: MATMFFD_WP.html

package info (click to toggle)
petsc 2.3.3-14
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 79,788 kB
  • ctags: 339,579
  • sloc: ansic: 255,388; cpp: 27,384; python: 27,194; fortran: 18,468; makefile: 11,436; sh: 3,671; f90: 1,447; xml: 620; csh: 211
file content (41 lines) | stat: -rw-r--r-- 1,965 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MATMFFD_WP</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<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="../Mat/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>