-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.bash
131 lines (107 loc) · 3.02 KB
/
default.bash
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
msg_install --message "Will install default modules now"
cm_defs="-P /directory/should/not/exist --module-path $(build_get --module-path)-apps"
# Source the file for obtaining correct env-variables
source $(build_get --source)
function echo_modules {
# Retrieve all modules
local mods=""
while [[ $# -gt 0 ]]; do
mods="$(pack_get --mod-req-module $1) $1"
shift
done
# Remove duplicates
mods="$(rem_dup $mods)"
local echos=""
for mod in $mods ; do
local tmp=$(pack_get --module-name $mod)
local tmp=${tmp//\/$(get_c)/}
echos="$echos $tmp"
done
printf '%s' "Loading: $echos"
}
msg_install --message "abinit, octopus, elk, q-espresso"
create_module $cm_defs \
-n "abinit.default" \
-W "Abinit: $(get_c)" \
-M abinit.default \
-echo "$(echo_modules abinit)" \
-RL abinit
create_module $cm_defs \
-n "octopus.default" \
-W "Octopus: $(get_c)" \
-M octopus.default \
-echo "$(echo_modules octopus)" \
-RL octopus
create_module $cm_defs \
-n "elk.default" \
-W "Elk: $(get_c)" \
-M elk.default \
-echo "$(echo_modules elk)" \
-RL elk
create_module $cm_defs \
-n "gulp.default" \
-W "GULP: $(get_c)" \
-M gulp.default \
-echo "$(echo_modules gulp)" \
-RL gulp
create_module $cm_defs \
-n "q-espresso.default" \
-W "QuantumEspresso: $(get_c)" \
-M q-espresso.default \
-echo "$(echo_modules q-espresso)" \
-RL q-espresso
msg_install --message "Inelastica"
create_module $cm_defs \
-n "Inelastica.default" \
-W "Inelastica: $(get_c)" \
-M Inelastica.default \
-echo "$(echo_modules Inelastica-dev)" \
-RL Inelastica-dev
msg_install --message "siesta and its variants"
create_module $cm_defs \
-n siesta.default \
-W "SIESTA: $(get_c)" \
-M siesta.default \
-echo "$(echo_modules siesta[4.0.2])" \
-RL siesta[4.0.2]
create_module $cm_defs \
-n siesta-master.default \
-W "SIESTA: $(get_c)" \
-M siesta-master.default \
-echo "$(echo_modules siesta-master)" \
-RL siesta-master
msg_install --message "openmx, vasp, dftb"
create_module $cm_defs \
-n openmx.default \
-W "OpenMX: $(get_c)" \
-M openmx.default \
-echo "$(echo_modules openmx)" \
-RL openmx
create_module $cm_defs \
-n vasp.default \
-W "VASP: $(get_c)" \
-M vasp.default \
-echo "$(echo_modules vasp)" \
-RL vasp
create_module $cm_defs \
-n dftbplus.default \
-W "DFTB+: $(get_c)" \
-M dftbplus.default \
-echo "$(echo_modules dftbplus)" \
-RL dftbplus
msg_install --message "performance analysis"
tmp=
for i in papi valgrind pdt tau extrae paraver dimemas scorep
do
if [[ $(pack_installed $i) -eq $_I_INSTALLED ]]; then
tmp="$tmp $i"
fi
done
#rm_latest performance-analysis.default/$(get_c)
create_module $cm_defs \
-n performance-analysis.default \
-W "Performance analysis routines: $(get_c)" \
-M performance-analysis.default \
-echo "$(echo_modules $tmp)" \
$(list --prefix '-RL ' $tmp)
unset echo_modules