-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.sh
executable file
·46 lines (39 loc) · 1.17 KB
/
compile.sh
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
#!/bin/bash
set -e
module load maple/2018.1
module load perl/5.30.2
libxcDir=${HOME}/code/libxc
mapleDir=${HOME}/code/libxc/maple
cd ${mapleDir}/gga_exc
## Create C code of GWS and helper functionals from Maple code
../../scripts/maple2c.pl ../.. gga_c_gws 4
../../scripts/maple2c.pl ../.. gga_x_gws 4
cd ${mapleDir}/lda_exc
../../scripts/maple2c.pl ../.. lda_c_pmgb06 4
../../scripts/maple2c.pl ../.. lda_x_erf_jt 4
cd ${libxcDir}
#cd ${mapleDir}/gga_exc
#../../scripts/maple2c.pl ../.. gga_c_pbehseri 4 # Takes about 44 minutes on tc-ws-006
#cd ${mapleDir}/lda_exc
#../../scripts/maple2c.pl ../.. lda_c_pmgb06 4
#../../scripts/maple2c.pl ../.. lda_x_erf 4
#cd ${libxcDir}
# Create C code for references
cd ${libxcDir}/src
../scripts/get_references.pl ../libxc.bib
cd ${libxcDir}
# Compile, test, and install library; clean up afterwards
#autoreconf -i -v
##./configure --prefix=/fast_scratch/vvburg/cache/libxc/inst
./configure --prefix=/home/cds/vvburg/code/libxc/inst
make -j 4
make check
make install
make clean
make distclean
#cd build_test
#cmake DCMAKE_BUILD_TYPE=RELEASE -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=../inst ..
#make -j 6
#make check
#make install
#make clean