Skip to content

Commit 3b25c5b

Browse files
committed
Detailed makefile
1 parent d113722 commit 3b25c5b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.pyc
22
*.py~
3-
*.csv
3+
*.csv
4+
*.png

makefile

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1+
example:
2+
echo "Running on 3 cores"
3+
mpirun -n 3 python pysrim.py --numIons=15 --ionEnergy=100000 --elementIon=Se -o example.csv
4+
echo "Output is file example.csv"
5+
echo "Run: disctibution.py example.csv example.png to create plot"
16
clean:
2-
rm -f *.pyc *~ temp.csv
7+
rm -f *.pyc *~ temp.csv temp.png
38
test:
49
echo "Test takes 30 minutes..."
510
python timing.py
11+
plot:
12+
mpirun -n 4 python pysrim.py -o --numIons=10 temp.csv
13+
python distribution.py temp.csv temp.png
14+
echo "plot is named temp.png"
15+
display temp.png
16+
617
release: clean
718
cd ..; tar -zcvf pysrim.tgz pysrim; mv pysrim.tgz pysrim/.

0 commit comments

Comments
 (0)