Skip to content

Commit

Permalink
Update a stokes test
Browse files Browse the repository at this point in the history
  • Loading branch information
bueler committed Apr 2, 2022
1 parent bed364a commit 0b53666
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions 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 -quad -showinfo -s_ksp_type preonly -s_pc_type lu -s_pc_factor_shift_type inblocks -s_pmat_type aij" 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" 1 2

# following test depends on gmsh version
runstokes_3:
Expand Down Expand Up @@ -38,4 +38,3 @@ test: test_gmshversion test_stokes

clean:
@rm -f *.pyc *.geo *.msh *.pvd *.pvtu *.vtu *.m maketmp tmp difftmp

9 changes: 6 additions & 3 deletions python/ch14/output/stokes.py.test2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
solving on 3 x 3 grid with Q_3 x Q_2 Taylor-Hood elements ...
sizes: n_u = 98, n_p = 25, N = 123
solution norms: |u|_h = 5.46e-02, |p|_h = 8.94e-01
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
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 0b53666

Please sign in to comment.