1-include ../../../petscdir.mk 2 3include ${PETSC_DIR}/lib/petsc/conf/variables 4include ${PETSC_DIR}/lib/petsc/conf/rules 5 6V ?= 0 7QUIET = $(shell [ "$(V)" = "0" ] && echo @) 8 9testex55: 10 -${QUIET}export PYTHONPATH=$${PYTHONPATH:+$$PYTHONPATH:}${PETSCPYTHONPATH};\ 11 echo "Using PYTHONPATH=$${PYTHONPATH} to locate mpi4py for test"; \ 12 ${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ${PYTHON_EXE} ./ex55.py > ex55.tmp 2>&1; 13 -@if [ ! -s ex55.tmp ]; then \ 14 echo "C/C++ mpi4py python example src/sys/tests/ex55.py run successfully with 2 MPI processes"; \ 15 else \ 16 echo "Possible error running Python src/sys/tests/ex55.py with 2 MPI processes"; \ 17 echo "See https://petsc.org/release/faq/";\ 18 cat ex55.tmp; \ 19 touch ../../../check_error;\ 20 fi; \ 21 ${RM} -f ex55.tmp 22