Skip to content

Commit 7a18b68

Browse files
akarve1507jorgensd
andauthored
Update chapter2/monolithic_navierstokes_crp0.py
Co-authored-by: Jørgen Schartum Dokken <dokken92@gmail.com>
1 parent 71ff533 commit 7a18b68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chapter2/monolithic_navierstokes_crp0.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def solve_once():
152152
ksp.setType("gmres")
153153
ksp.setTolerances(rtol=1e-8, max_it=1000)
154154
ksp.getPC().setType("jacobi")
155+
ksp.setErrorIfNotConverged(True)
155156

156157
# wrap dolfinx vector, solve, copy back
157158
x = PETSc.Vec().createWithArray(w.x.array, comm=comm)

0 commit comments

Comments
 (0)