1. petsc
  2. PETSc
  3. petsc

Commits

Jed Brown  committed 97d80a9

SNES runex19_draw: check output and report errors

Reported-by: Barry Smith <bsmith@mcs.anl.gov>

  • Participants
  • Parent commits 19ae98d
  • Branches master

Comments (0)

Files changed (2)

File src/snes/examples/tutorials/makefile

View file
         ${RM} -f ex19_composite_gs_newton.tmp
 
 runex19_draw:
-	-@${MPIEXEC} -n 1 ./ex19 -pc_type fieldsplit -snes_view draw -fieldsplit_x_velocity_pc_type mg -fieldsplit_x_velocity_pc_mg_galerkin -fieldsplit_x_velocity_pc_mg_levels 2 -da_refine 1 -fieldsplit_x_velocity_mg_coarse_pc_type svd
+	-@${MPIEXEC} -n 1 ./ex19 -pc_type fieldsplit -snes_view draw -fieldsplit_x_velocity_pc_type mg -fieldsplit_x_velocity_pc_mg_galerkin -fieldsplit_x_velocity_pc_mg_levels 2 -da_refine 1 -fieldsplit_x_velocity_mg_coarse_pc_type svd > ex19_draw.tmp 2>&1; \
+          ${DIFF} output/ex19_draw.out ex19_draw.tmp || echo  ${PWD} "\nPossible problem with ex19_draw, diffs above \n========================================="; \
+          ${RM} ex19_draw.tmp
 
 runex18:
 	-@${MPIEXEC} -n 1 ./ex18 -pc_type mg -ksp_type fgmres -da_refine 2 -pc_mg_galerkin -snes_view > ex18_1.tmp 2>&1; \

File src/snes/examples/tutorials/output/ex19_draw.out

View file
+lid velocity = 0.0204082, prandtl # = 1, grashof # = 1
+Number of SNES iterations = 2