/
Makefile
63 lines (48 loc) · 1.75 KB
/
Makefile
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#A=Brian_Curtis_042213_1
#B=Brian_Curtis_042213_5
#O=18
#B=Brian_Curtis_102114_1
#O=36
A=Brian_Curtis_042213_2
B=Brian_Curtis_042213_6
O=18
#B=Brian_Curtis_102114_2
#O=36
PARAVIEW=deps/ParaView-4.2.0-Linux-64bit
all:
cd src; make all
pcdiffvtk: src/pcdiff.cpp
cd data/$(A); find . -name "*cdf.gz" | xargs -i -P12 gunzip {}
cd data/$(B); find . -name "*cdf.gz" | xargs -i -P12 gunzip {}
mkdir -p data/$(A)/Results
mkdir -p data/$(B)/Results
mkdir -p data/Precondition/$(B)_minus_$(A)
./bin/pcdiff data/Precondition/$(B)_minus_$(A) data/$(A) data/$(B) $(O)
images:
~/ParaView-4.2.0-Linux-64bit/bin/pvbatch readerimg.py
pcdiffimg: pcdiffimg.py
$(PARAVIEW)/bin/pvbatch pcdiffimg.py data/Precondition/$(B)_minus_$(A) $(O)
pcdiffanim:
cd data/Precondition/$(B)_minus_$(A); \
convert -delay 20 -loop 0 `ls pcdiff_Bz_*.png | sort -V` pcdiff_Bz.gif \
convert -delay 20 -loop 0 `ls pcdiff_Jx_*.png | sort -V` pcdiff_Jx.gif \
convert -delay 20 -loop 0 `ls pcdiff_Ux_*.png | sort -V` pcdiff_Ux.gif \
convert -delay 20 -loop 0 `ls pcdiff_Vx_*.png | sort -V` pcdiff_Vx.gif \
tgz/ParaView-4.2.0-Linux-64bit.tar.gz:
cd tgz; wget http://mag.gmu.edu/tmp/ParaView-4.2.0-Linux-64bit.tar.gz
ParaView-4.2.0-Linux-64bit: tgz/ParaView-4.2.0-Linux-64bit.tar.gz
cd deps; tar zxvf tgz/ParaView-4.2.0-Linux-64bit.tar.gz
unzip:
find ./data -name "*.vtk.gz" | xargs -i -P 12 gunzip {}
deps/ParaView-v4.2.0-source:
cd deps; tar zxvf tgz/ParaView-v4.2.0-source.tgz
paraviewfromsrc: deps/ParaView-v4.2.0-source
cd deps; mkdir ParaView-v4.2.0
cd deps/ParaView-v4.2.0/; cmake ../ParaView-v4.2.0-source
clean:
cd src; make clean
distclean:
cd src; make distclean
- rm -rf deps/ParaView-v4.2.0-source
- rm -f tgz/ParaView-4.2.0-Linux-64bit.tgz
- rm -rf deps/ParaView-4.2.0-Linux-64bit