
include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules

ex42: ex42.o chkopts
	-${CLINKER} -o ex42 ex42.o ${PETSC_KSP_LIB}
	${RM} ex42.o

#------------------------------------------------------------------------------------

runex42:
	-@${MPIEXEC} -n 1 ./ex42 -ksp_type minres -pc_type none -ksp_converged_reason > ex42.tmp 2>&1;\
	if (${DIFF} output/ex42.out ex42.tmp) then true; \
	   else printf "${PWD}\nPossible problem with with ex42_1, diffs above\n=========================================\n"; fi; \
	   ${RM} -f ex42.tmp
runex42_2:
	-@${MPIEXEC} -n 3 ./ex42 -ksp_type minres -pc_type none -ksp_converged_reason > ex42.tmp 2>&1;\
	if (${DIFF} output/ex42_2.out ex42.tmp) then true; \
	   else printf "${PWD}\nPossible problem with with ex42_2, diffs above\n=========================================\n"; fi; \
	   ${RM} -f ex42.tmp

