petsc-3.6.1 2015-08-06
CFLAGS =
FFLAGS =
CPPFLAGS =
FPPFLAGS =
LOCDIR = tutorials/python/
MANSEC =
EXAMPLESC = ex1.c
EXAMPLESF =
EXAMPLESCH =
EXAMPLESFH =
EXAMPLESMATLAB =
DIRS =
CLEANFILES =
include ${PETSC_DIR}/lib/petsc/conf/variables
include ${PETSC_DIR}/lib/petsc/conf/rules
#--------------------------------------------------------------------------
ex1: ex1.o chkopts
-${CLINKER} -o ex1 ex1.o ${PETSC_KSP_LIB}
${RM} ex1.o
ex1f: ex1f.o chkopts
-${FLINKER} -o ex1f ex1f.o ${PETSC_KSP_LIB}
${RM} ex1f.o
#--------------------------------------------------------------------------
PYTHON = python
runex1:
-@${MPIEXEC} -n 1 ./ex1 -ksp_monitor_short -ksp_view > ex1_1.tmp 2>&1; \
if (${DIFF} output/ex1_1.out ex1_1.tmp) then true; \
else printf "${PWD}\nPossible problem with ex1_1, diffs above\n=========================================\n"; fi; \
${RM} -f ex1_1.tmp example1.py[co]
runex1f:
-@${MPIEXEC} -n 1 ./ex1f -ksp_monitor_short -ksp_view > ex1f_1.tmp 2>&1; \
if (${DIFF} output/ex1f_1.out ex1f_1.tmp) then true; \
else printf "${PWD}\nPossible problem with ex1f_1, diffs above\n=========================================\n"; fi; \
${RM} -f ex1f_1.tmp
runex1py:
-@${MPIEXEC} -n 1 python ./ex1.py -ksp_monitor_short -ksp_view > ex1py_1.tmp 2>&1; \
if (${DIFF} output/ex1py_1.out ex1py_1.tmp) then true; \
else printf "${PWD}\nPossible problem with ex1py_1, diffs above\n=========================================\n"; fi; \
${RM} -f ex1py_1.tmp example1.py[co]
TESTEXAMPLES_C_PYTHON = ex1.PETSc runex1 runex1py ex1.rm
TESTEXAMPLES_FORTRAN_PYTHON = ex1f.PETSc runex1f ex1f.rm
#--------------------------------------------------------------------------
include ${PETSC_DIR}/lib/petsc/conf/test