Skip to content

Commit 24fea4f

Browse files
authored
Update lesson.md
1 parent 47a62eb commit 24fea4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lessons/iterativesolvers/lesson.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ Now attempt to run this in parallel and obtain solver performance data
8181
PETSC_OPTIONS="-log_view -ksp_norm_type preconditioned -ksp_type gmres -ksp_gmres_restart 30" ${MPIEXEC_OMPI} -n 4 ./ex2p -petscopts rc_ex2p --mesh /projects/ATPESC2017/NumericalPackages/handson/mfem/data/beam-tri.mesh
8282
```
8383

84+
## Example 2: Nonlinear Problem:
85+
86+
```
87+
PETSC_OPTS="-snes_rtol 1.e-10 -snes_view -pc_type bjacobi -sub_pc_type ilu " ./ex10p -m ../../data/beam-quad.mesh --petscopts rc_ex10p -s 3 -rs 2 -dt 3 | more
88+
```
89+
90+
Note the quadratic convergence; the residual norm exponent doubles until it runs out of digits to double.
91+
8492
## Out-Brief
8593

8694
We have used [PETSc](https://www.mcs.anl.gov/petsc/) to demonstrate the use of preconditioned Krylov methods. Many examples are available for various aspects of PETSc functionality, including

0 commit comments

Comments
 (0)