Skip to content

Commit

Permalink
Merge branch 'knepley/fix-faults-parallel'
Browse files Browse the repository at this point in the history
* knepley/fix-faults-parallel:
  Add more info about solver tolerances for friction in quasi static simulations.
  • Loading branch information
baagaard-usgs committed Jun 1, 2014
2 parents 32d65f2 + f795a04 commit d42a67a
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions doc/userguide/boundaryconditions/boundaryconditions.lyx
Original file line number Diff line number Diff line change
Expand Up @@ -4981,6 +4981,92 @@ friction.db_properties = spatialdata.spatialdb.SimpleDB
friction.db_properties.iohandler.filename = friction.spatialdb
\end_layout

\begin_layout Quote

\series bold
\color red
Warning:
\color inherit

\series default
\color none
Use of the dynamic rupture implementation in a quasi-static simulations
requires use of the nonlinear solver and careful selection of linear and
nonlinear solver tolerances.
A key issue is making sure the linear solver toleance is tighter (smaller)
than the tolerance used to detect slip (fault
\family typewriter
\color inherit
zero_toelerance
\family default
\color none
).
As a result, the linear and solver absolute tolerances should be used to
for convergence, not the relative tolerances.
The code below illustrates the relevant parameters and example values.
The values can be scaled to change the overall desired tolerances.
\end_layout

\begin_layout LyX-Code
[pylithapp.problem.interfaces.fault]
\end_layout

\begin_layout LyX-Code
zero_tolerance = 1.0e-11
\begin_inset Newline newline
\end_inset


\begin_inset Newline newline
\end_inset

[pylithapp.petsc]
\begin_inset Newline newline
\end_inset

# Linear solver tolerances
\begin_inset Newline newline
\end_inset

ksp_rtol = 1.0e-20
\begin_inset Newline newline
\end_inset

ksp_atol = 1.0e-12
\begin_inset Newline newline
\end_inset


\begin_inset Newline newline
\end_inset

# Nonlinear solver tolerances
\begin_inset Newline newline
\end_inset

snes_rtol = 1.0e-20
\begin_inset Newline newline
\end_inset

snes_atol = 1.0e-10
\begin_inset Newline newline
\end_inset


\begin_inset Newline newline
\end_inset

# Set preconditioner for friction sensitivity solve
\begin_inset Newline newline
\end_inset

friction_pc_type = asm
\begin_inset Newline newline
\end_inset

friction_sub_pc_factor_shift_type = nonzero
\end_layout

\begin_layout Standard
The prescribed traction perturbation is specified using the same fault coordinat
e system as the slip directions in the kinematic ruptures.
Expand Down

0 comments on commit d42a67a

Please sign in to comment.