1-include ../../../petscdir.mk 2CFLAGS = 3FFLAGS = 4CPPFLAGS = 5FPPFLAGS = 6LOCDIR = src/sys/tests/ 7EXAMPLESC = ex1.c ex2.c ex3.c ex6.c ex7.c ex8.c ex9.c ex10.c ex11.c ex12.c \ 8 ex14.c ex16.c ex18.c ex19.c ex20.c ex21.c \ 9 ex22.c ex23.c ex24.c ex25.c ex26.c ex27.c ex28.c ex29.c ex30.c ex31.c ex32.c ex35.c ex37.c \ 10 ex44.cxx ex45.cxx ex46.cxx ex47.c ex49.c \ 11 ex50.c ex51.c ex52.c ex53.c 12EXAMPLESF = ex1f.F90 ex5f.F ex6f.F ex17f.F ex36f.F90 ex38f.F90 ex47f.F90 ex48f90.F90 ex49f.F90 13MANSEC = Sys 14 15include ${PETSC_DIR}/lib/petsc/conf/variables 16include ${PETSC_DIR}/lib/petsc/conf/rules 17include ${PETSC_DIR}/lib/petsc/conf/test 18 19testex55: 20 -@if [ "${PETSC_WITH_BATCH}" != "" ]; then \ 21 echo "Running with batch filesystem; to test run src/sys/tests/ex55.py with" ; \ 22 echo "your systems batch system"; \ 23 elif [ "${MPIEXEC}" = "/bin/false" ]; then \ 24 echo "*mpiexec not found*. Please run src/sys/tests/ex55.py manually"; \ 25 else \ 26 if [[ -d ${PETSC_DIR}/${PETSC_ARCH}/lib/mpi4py && "X${PYTHONPATH}" == "X" ]]; then \ 27 export PYTHONPATH=${PETSC_DIR}/${PETSC_ARCH}/lib; \ 28 echo "Setting PYTHONPATH to $${PYTHONPATH} to locate mpi4py for test"; \ 29 fi; \ 30 ${MPIEXEC} -n 2 ${PYTHON} ./ex55.py > ex55_1.tmp 2>&1;\ 31 if (${DIFF} output/ex55_1.testout ex55_1.tmp > /dev/null 2>&1) then \ 32 echo "C/C++ mpi4py python example src/sys/tests/ex55.py run successfully with 2 MPI process"; \ 33 else echo "Possible error running Python src/sys/tests/ex55.py with 2 MPI processes"; \ 34 echo "See http://www.mcs.anl.gov/petsc/documentation/faq.html";\ 35 cat ex55_1.tmp; fi; \ 36 ${RM} -f ex55.tmp; fi 37