petsc-3.4.5 2014-06-29
CFLAGS	         =
FFLAGS	         =
CPPFLAGS         =
FPPFLAGS         =
LOCDIR   = src/vec/is/sf/examples/tutorials/
EXAMPLESC        = ex1.c
EXAMPLESF        =

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

ex1: ex1.o chkopts
	-${CLINKER} -o ex1 ex1.o  ${PETSC_VEC_LIB}
	${RM} -f ex1.o

#------------------------------------------------------------------------
runex1:
	-@${MPIEXEC} -n 4 ./ex1 -test_bcast -sf_type window > ex1_1.tmp 2>&1; \
	   ${DIFF} output/ex1_1.out ex1_1.tmp || echo "${PWD}\n Possible problem with with ex1, diffs above \n========================================="; \
	   ${RM} -f ex1_1.tmp
runex1_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_bcast -sf_type basic  > ex1_1.tmp 2>&1; \
	   ${DIFF} output/ex1_1_basic.out ex1_1.tmp || echo "${PWD}\n Possible problem with with ex1_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_1.tmp
runex1_2:
	-@${MPIEXEC} -n 4 ./ex1 -test_reduce -sf_type window> ex1_2.tmp 2>&1; \
	   ${DIFF} output/ex1_2.out ex1_2.tmp || echo "${PWD}\n Possible problem with with ex1_2, diffs above \n========================================="; \
	   ${RM} -f ex1_2.tmp
runex1_2_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_reduce -sf_type basic > ex1_2.tmp 2>&1; \
	   ${DIFF} output/ex1_2_basic.out ex1_2.tmp || echo "${PWD}\n Possible problem with with ex1_2_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_2.tmp
runex1_3:
	-@${MPIEXEC} -n 4 ./ex1 -test_degree -sf_type window > ex1_3.tmp 2>&1; \
	   ${DIFF} output/ex1_3.out ex1_3.tmp || echo "${PWD}\n Possible problem with with ex1_3, diffs above \n========================================="; \
	   ${RM} -f ex1_3.tmp
runex1_3_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_degree -sf_type basic  > ex1_3.tmp 2>&1; \
	   ${DIFF} output/ex1_3_basic.out ex1_3.tmp || echo "${PWD}\n Possible problem with with ex1_3_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_3.tmp
runex1_4:
	-@${MPIEXEC} -n 4 ./ex1 -test_gather -sf_type window > ex1_4.tmp 2>&1; \
	   ${DIFF} output/ex1_4.out ex1_4.tmp || echo "${PWD}\n Possible problem with with ex1_4, diffs above \n========================================="; \
	   ${RM} -f ex1_4.tmp
runex1_4_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_gather -sf_type basic  > ex1_4.tmp 2>&1; \
	   ${DIFF} output/ex1_4_basic.out ex1_4.tmp || echo "${PWD}\n Possible problem with with ex1_4_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_4.tmp
runex1_5:
	-@${MPIEXEC} -n 4 ./ex1 -test_scatter -sf_type window > ex1_5.tmp 2>&1; \
	   ${DIFF} output/ex1_5.out ex1_5.tmp || echo "${PWD}\n Possible problem with with ex1_5, diffs above \n========================================="; \
	   ${RM} -f ex1_5.tmp
runex1_5_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_scatter -sf_type basic  > ex1_5.tmp 2>&1; \
	   ${DIFF} output/ex1_5_basic.out ex1_5.tmp || echo "${PWD}\n Possible problem with with ex1_5_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_5.tmp
runex1_6:
	-@${MPIEXEC} -n 4 ./ex1 -test_embed -sf_type window > ex1_6.tmp 2>&1; \
	   ${DIFF} output/ex1_6.out ex1_6.tmp || echo "${PWD}\n Possible problem with with ex1_6, diffs above \n========================================="; \
	   ${RM} -f ex1_6.tmp
runex1_6_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_embed -sf_type basic > ex1_6.tmp 2>&1; \
	   ${DIFF} output/ex1_6_basic.out ex1_6.tmp || echo "${PWD}\n Possible problem with with ex1_6_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_6.tmp
runex1_7:
	-@${MPIEXEC} -n 4 ./ex1 -test_invert -sf_type window > ex1_7.tmp 2>&1; \
	   ${DIFF} output/ex1_7.out ex1_7.tmp || echo "${PWD}\n Possible problem with with ex1_7, diffs above \n========================================="; \
	   ${RM} -f ex1_7.tmp
runex1_7_basic:
	-@${MPIEXEC} -n 4 ./ex1 -test_invert -sf_type basic > ex1_7.tmp 2>&1; \
	   ${DIFF} output/ex1_7_basic.out ex1_7.tmp || echo "${PWD}\n Possible problem with with ex1_7_basic, diffs above \n========================================="; \
	   ${RM} -f ex1_7.tmp

TESTEXAMPLES_C		    = ex1.PETSc runex1_basic runex1_2_basic runex1_3_basic runex1_4_basic runex1_5_basic runex1_6_basic runex1_7_basic ex1.rm
TESTEXAMPLES_C_X	    =
TESTEXAMPLES_FORTRAN	    =
TESTEXAMPLES_FORTRAN_MPIUNI =
TESTEXAMPLES_C_X_MPIUNI   =
TESTEXAMPLES_F90	    =

include ${PETSC_DIR}/conf/test