File: makefile

package info (click to toggle)
petsc4py 3.22.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,396 kB
  • sloc: python: 12,130; ansic: 1,699; makefile: 342; f90: 313; sh: 14
file content (26 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- makefile -*-

MPIEXEC=
PYTHON=python

-include ../../../../../petscdir.mk
-include ${PETSC_DIR}/lib/petsc/conf/variables

.PHONY:test
test: run clean

.PHONY:run
run: run_fd run_mf

.PHONY:run_fd
run_fd:
	${MPIEXEC} ${MPIEXEC_FLAGS} ${PYTHON} bratu3d.py -fd -nx 7 -ny 8 -nz 9

.PHONY:run_mf
run_mf:
	${MPIEXEC} ${MPIEXEC_FLAGS} ${PYTHON} bratu3d.py -mf -nx 9 -ny 8 -nz 7

.PHONY:clean
clean:
	${RM} *.py[co]
	${RM} -r __pycache__