Commits

Peter Brune committed 67ffc90

Added a test for full-cycle FAS.

Comments (0)

Files changed (2)

src/snes/examples/tutorials/makefile

 	   ${DIFF} output/ex19_fas.out ex19_fas.tmp || echo  ${PWD} "\nPossible problem with ex19_fas, diffs above \n========================================="; \
            ${RM} -f ex19_fas.tmp
 
+runex19_fas_full: #test ex19 with FAS and pointwise GS smoother
+	-@${MPIEXEC} -n 1 ./ex19 -da_refine 4 -snes_monitor_short -snes_type fas -snes_fas_type full -snes_fas_full_downsweep \
+        -fas_levels_snes_type gs -fas_levels_snes_gs_sweeps 3 -fas_levels_snes_gs_rtol 1e-15 -fas_levels_snes_gs_atol 0.0 -fas_levels_snes_gs_stol 0.0 \
+        -grashof 4e4 -snes_fas_smoothup 6 -snes_fas_smoothdown 6 -lidvelocity 100 > ex19_fas_full.tmp 2>&1; \
+	   ${DIFF} output/ex19_fas_full.out ex19_fas_full.tmp || echo  ${PWD} "\nPossible problem with ex19_fas, diffs above \n========================================="; \
+        #           ${RM} -f ex19_fas_full.tmp
+
 runex19_ngmres_fas: #test ex19 with NGMRES preconditioned by FAS with pointwise GS smoother
 	-@${MPIEXEC} -n 1 ./ex19 -da_refine 4 -snes_monitor_short -snes_type ngmres \
         -npc_fas_levels_snes_type gs -npc_fas_levels_snes_gs_sweeps 3 -npc_fas_levels_snes_gs_rtol 1e-15 -npc_fas_levels_snes_gs_atol 0.0 -npc_fas_levels_snes_gs_stol 0.0 \

src/snes/examples/tutorials/output/ex19_fas_full.out

+lid velocity = 100, prandtl # = 1, grashof # = 40000
+  0 SNES Function norm 1065.74 
+  1 SNES Function norm 72.3855 
+  2 SNES Function norm 21.7121 
+  3 SNES Function norm 6.05861 
+  4 SNES Function norm 1.57542 
+  5 SNES Function norm 0.370969 
+  6 SNES Function norm 0.0860072 
+  7 SNES Function norm 0.0199694 
+  8 SNES Function norm 0.00462497 
+  9 SNES Function norm 0.00106233 
+ 10 SNES Function norm 0.000242502 
+ 11 SNES Function norm 5.50053e-05 
+ 12 SNES Function norm 1.23989e-05 
+ 13 SNES Function norm 2.77761e-06 
+Number of SNES iterations = 13