makefile (e6bb321c5bac5907bf3da34ed8e28b6c2d064a7f) makefile (b59c00aac33bcee8adab1e4f09d5a24aa820f6bc)
1-include ../../../petscdir.mk
2
3MANSEC = Sys
4
5include ${PETSC_DIR}/lib/petsc/conf/variables
6include ${PETSC_DIR}/lib/petsc/conf/rules
7
8testex55:
9 -@export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}${PETSC_MPI4PY_PYTHONPATH}; \
10 echo "Using PYTHONPATH=$${PYTHONPATH} to locate mpi4py for test"; \
11 ${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ${PYTHON_EXE} ./ex55.py > ex55_1.tmp 2>&1;\
1-include ../../../petscdir.mk
2
3MANSEC = Sys
4
5include ${PETSC_DIR}/lib/petsc/conf/variables
6include ${PETSC_DIR}/lib/petsc/conf/rules
7
8testex55:
9 -@export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}${PETSC_MPI4PY_PYTHONPATH}; \
10 echo "Using PYTHONPATH=$${PYTHONPATH} to locate mpi4py for test"; \
11 ${MPIEXEC} -n 2 ${MPIEXEC_TAIL} ${PYTHON_EXE} ./ex55.py > ex55_1.tmp 2>&1;\
12 if (${DIFF} output/ex55_1.testout ex55_1.tmp > /dev/null 2>&1) then \
12 if (${DIFF} output/ex55_1.testout ex55_1.tmp > /dev/null 2>&1) then \
13 echo "C/C++ mpi4py python example src/sys/tests/ex55.py run successfully with 2 MPI processes"; \
13 else \
14 else \
15 echo "Possible error running Python src/sys/tests/ex55.py with 2 MPI processes"; \
14 echo "See https://petsc.org/release/faq/";\
15 cat ex55_1.tmp; \
16 touch ${PETSC_DIR}/check_error;\
17 fi; \
18 ${RM} -f ex55.tmp
16 echo "See https://petsc.org/release/faq/";\
17 cat ex55_1.tmp; \
18 touch ${PETSC_DIR}/check_error;\
19 fi; \
20 ${RM} -f ex55.tmp