-
Notifications
You must be signed in to change notification settings - Fork 2
/
cryan_patch
72 lines (68 loc) · 2.59 KB
/
cryan_patch
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
64
65
66
67
68
69
70
71
72
--- airss-0.9.1-origin/airss-0.9.1/src/cryan/src/cryan.f90 2018-07-06 19:26:36.000000000 +0100
+++ airss-0.9.1/src/cryan/src/cryan.f90 2019-08-16 15:13:37.089469500 +0100
@@ -108,6 +108,7 @@
logical :: cluster=.false.
logical :: have_c=.false.
logical :: xmgrace=.false.
+ logical :: gracefile=.false.
logical :: have_spin=.false.
logical :: have_dos=.false.
logical :: long=.false.
@@ -2606,6 +2607,21 @@
end if
endif
+ if (gracefile) then
+ ctemp="gracebat hull.agr -hdevice PostScript -hardcopy -printfile hull.ps && ps2pdf14 -dOptimize hull.ps"
+ stat=0
+ call system(ctemp)
+ ctemp='Problem executing external command :: '//trim(ctemp)
+ if (stat.ne.0) then
+ write (stderr,'(a)') trim(ctemp)
+ stop
+ end if
+ ctemp='Figure saved in hull.pdf'
+ write (stderr,'(a)') trim(ctemp)
+ endif
+
+
+
else if(num_points.eq.3) then
call write_ternary()
@@ -2621,6 +2637,20 @@
end if
endif
+ if (gracefile) then
+ ctemp="gracebat ternary.agr -hdevice PostScript -hardcopy -printfile ternary.ps && ps2pdf14 -dOptimize ternary.ps"
+ stat=0
+ call system(ctemp)
+ ctemp='Problem executing external command :: '//trim(ctemp)
+ if (stat.ne.0) then
+ write (stderr,'(a)') trim(ctemp)
+ stop
+ end if
+ ctemp='Figure saved in ternary.pdf'
+ write (stderr,'(a)') trim(ctemp)
+ endif
+
+
call write_ternary_R()
else if(num_points.eq.4) then
@@ -3775,7 +3805,9 @@
num_tasks=num_tasks+1
task(num_tasks)='phull'
case('-xg','--xmgrace')
- xmgrace=.true.
+ gracefile=.true.
+ case('-xgf','--xmgrace-fileout')
+ gracefile=.true.
case('-1')
na=na+1
read(argbuff(na),*,err=106) comp_1
@@ -3928,6 +3960,7 @@
print '(a)', ' -ph, --pressure_hull Extract the stable structures with pressure'
print '(a)', ' -<n> Component <n>'
print '(a)', ' -xg, --xmgrace Plot output with xmgrace'
+ print '(a)', ' -xgf, --xmgrace-fileout Save output plot in PNG format'
print '(a)', ' -c, --compare <thresh > <structure> Compare structure to all others'
print '(a)', ' --delete Delete unwanted structures'
print '(a)', ' -g, --geometry [thresh] Calculate the atomic geometry for the structures (default 0.1)'