Skip to content

Commit

Permalink
make test 2 more robust to rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
bueler committed Apr 2, 2022
1 parent 0b53666 commit 66bbcd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/ch14/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runstokes_1:
-@../../c/testit.sh stokes.py "-analytical -mx 4 -my 4 -s_ksp_type minres -s_ksp_converged_reason -s_pc_type none -s_ksp_rtol 1.0e-2" 1 1

runstokes_2:
-@../../c/testit.sh stokes.py "-udegree 3 -pdegree 2 -refine 1 -quad -showinfo -s_ksp_type preonly -s_pc_type lu -s_pc_factor_shift_type inblocks -s_pmat_type aij -s_ksp_monitor" 1 2
-@../../c/testit.sh stokes.py "-udegree 3 -pdegree 2 -refine 1 -quad -showinfo -s_ksp_type preonly -s_pc_type lu -s_pc_factor_shift_type inblocks -s_pmat_type aij -s_ksp_monitor_short" 1 2

# following test depends on gmsh version
runstokes_3:
Expand Down
4 changes: 2 additions & 2 deletions python/ch14/output/stokes.py.test2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
solving on 5 x 5 grid with Q_3 x Q_2 Taylor-Hood elements ...
Residual norms for s_ solve.
0 KSP Residual norm 1.101691365508e+00
1 KSP Residual norm 3.195792542366e-15
0 KSP Residual norm 1.10169
1 KSP Residual norm < 1.e-11
sizes: n_u = 338, n_p = 81, N = 419
solution norms: |u|_h = 5.41e-02, |p|_h = 8.65e-01

0 comments on commit 66bbcd8

Please sign in to comment.