File: SNESNASM.html

package info (click to toggle)
petsc 3.14.5%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 266,472 kB
  • sloc: ansic: 680,898; python: 33,303; cpp: 16,324; makefile: 14,022; f90: 13,731; javascript: 10,713; fortran: 9,581; sh: 1,373; xml: 619; objc: 445; csh: 192; pascal: 148; java: 13
file content (54 lines) | stat: -rw-r--r-- 5,117 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
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESNASM.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>SNESNASM</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/SNES/SNESNASM.html "><small>Report Typos and Errors</small></a></div>
<A NAME="SNESNASM"><H1>SNESNASM</H1></A>
Nonlinear Additive Schwarz 
<H3><FONT COLOR="#CC3333">Options Database</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-snes_nasm_log </B></TD><TD>- enable logging events for the communication and solve stages
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-snes_nasm_type &lt;basic,restrict&gt; </B></TD><TD>- type of subdomain update used
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-snes_asm_damping &lt;dmp&gt; </B></TD><TD>- the new solution is obtained as old solution plus dmp times (sum of the solutions on the subdomains)
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-snes_nasm_finaljacobian </B></TD><TD>- compute the local and global jacobians of the final iterate
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-snes_nasm_finaljacobian_type &lt;finalinner,finalouter,initial&gt; </B></TD><TD>- pick state the jacobian is calculated at
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-sub_snes_ </B></TD><TD>- options prefix of the subdomain nonlinear solves
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-sub_ksp_ </B></TD><TD>- options prefix of the subdomain Krylov solver
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-sub_pc_ </B></TD><TD>- options prefix of the subdomain preconditioner
</TD></TR></TABLE>
<P>

<P>
Developer Note: This is a non-Newton based nonlinear solver that does not directly require a Jacobian; hence the flag snes-&gt;usesksp is set to
false and <A HREF="../SNES/SNESView.html#SNESView">SNESView</A>() and -snes_view do not display a <A HREF="../KSP/KSP.html#KSP">KSP</A> object. However, if the flag nasm-&gt;finaljacobian is set (for example, if
NASM is used as a nonlinear preconditioner for  KSPASPIN) then <A HREF="../SNES/SNESSetUpMatrices.html#SNESSetUpMatrices">SNESSetUpMatrices</A>() is called to generate the Jacobian (needed by KSPASPIN)
and this utilizes the <A HREF="../KSP/KSP.html#KSP">KSP</A> for storing the matrices, but the <A HREF="../KSP/KSP.html#KSP">KSP</A> is never used for solving a linear system. Note that when <A HREF="../SNES/SNESNASM.html#SNESNASM">SNESNASM</A> is
used by <A HREF="../SNES/SNESASPIN.html#SNESASPIN">SNESASPIN</A> they share the same Jacobian matrices because <A HREF="../SNES/SNESSetUp.html#SNESSetUp">SNESSetUp</A>() (called on the outer <A HREF="../SNES/SNES.html#SNES">SNES</A> KSPASPIN) causes the inner <A HREF="../SNES/SNES.html#SNES">SNES</A>
object (in this case <A HREF="../SNES/SNESNASM.html#SNESNASM">SNESNASM</A>) to inherit the outer Jacobian matrices.
<P>
<H3><FONT COLOR="#CC3333">References</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>1. </B></TD><TD>- Peter R. Brune, Matthew G. Knepley, Barry F. Smith, and Xuemin Tu, "Composing Scalable Nonlinear Algebraic Solvers",
SIAM Review, 57(4), 2015
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
 <A HREF="../SNES/SNESCreate.html#SNESCreate">SNESCreate</A>(), <A HREF="../SNES/SNES.html#SNES">SNES</A>, <A HREF="../SNES/SNESSetType.html#SNESSetType">SNESSetType</A>(), <A HREF="../SNES/SNESType.html#SNESType">SNESType</A> (for list of available types), <A HREF="../SNES/SNESNASMSetType.html#SNESNASMSetType">SNESNASMSetType</A>(), <A HREF="../SNES/SNESNASMGetType.html#SNESNASMGetType">SNESNASMGetType</A>(), <A HREF="../SNES/SNESNASMSetSubdomains.html#SNESNASMSetSubdomains">SNESNASMSetSubdomains</A>(), <A HREF="../SNES/SNESNASMGetSubdomains.html#SNESNASMGetSubdomains">SNESNASMGetSubdomains</A>(), <A HREF="../SNES/SNESNASMGetSubdomainVecs.html#SNESNASMGetSubdomainVecs">SNESNASMGetSubdomainVecs</A>(), <A HREF="../SNES/SNESNASMSetComputeFinalJacobian.html#SNESNASMSetComputeFinalJacobian">SNESNASMSetComputeFinalJacobian</A>(), <A HREF="../SNES/SNESNASMSetDamping.html#SNESNASMSetDamping">SNESNASMSetDamping</A>(), <A HREF="../SNES/SNESNASMGetDamping.html#SNESNASMGetDamping">SNESNASMGetDamping</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/snes/impls/nasm/nasm.c.html#SNESNASM">src/snes/impls/nasm/nasm.c</A>
<BR><A HREF="./index.html">Index of all SNES 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>