-
Notifications
You must be signed in to change notification settings - Fork 27
/
yambo-4.1.4_install
executable file
·78 lines (61 loc) · 1.33 KB
/
yambo-4.1.4_install
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
#!/usr/bin/env bash
set -e
package_name="yambo"
package_version="4.1.4"
source includes/source_includes.sh
_env_setup() {
module purge
require gcc-libs/4.9.2
require compilers/intel/2017/update4
require mpi/intel/2017/update3/intel
make_build_env ""
package_url="https://github.com/yambo-code/yambo/archive/refs/tags/${package_version}.tar.gz"
package_file="${package_version}.tar.gz"
unpack_dir="yambo-${package_version}"
}
_file_setup() {
cd "$build_dir"
wget "$package_url"
tar -xf "$package_file"
}
_pre_build() {
cd "$unpack_dir"
# Nothing here.
cd ..
}
_build() {
cd "$unpack_dir"
./configure \
--with-fft-libs=-mkl \
--with-blas-libs=-mkl \
--with-lapack-libs=-mkl \
--enable-etsf-io \
--enable-netcdf-LFS \
--prefix="$install_prefix"
make all
cd ..
}
_post_build() {
cd "$unpack_dir"
#make install
mkdir -p "$install_prefix"
cp -r bin doc "$install_prefix"/
make_module \
-o "${module_dir}/${package_label}" \
-p "$install_prefix" \
-r gcc-libs \
-r compilers/intel/2017 \
-r mpi/intel/2017 \
-c yambo
cd ..
}
_clean_up() {
#rm -Rf ${temp_dir:-ERROR_TEMP_DIR_NOT_SET}
:
}
_env_setup
_file_setup
_pre_build
_build
_post_build
_clean_up