forked from tkotani/ecalj
-
Notifications
You must be signed in to change notification settings - Fork 1
/
InstallAll.pgi
executable file
·71 lines (63 loc) · 1.42 KB
/
InstallAll.pgi
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
#!/bin/bash
#set -o verbose
BINDIR=${HOME}/bin
MATH='-lfftw3 -lscalapack -lblacsF77 -lblacsBASE -lblacsC -llapack -lblas'
#MATH='-lfftw3 -lscalapack -lblacsF77init_MPI-LINUX-0 -lblacs_MPI-LINUX-0 -lblacsCinit_MPI-LINUX-0 -llapack -lblas'
### This is an example for ubuntu
# For each machine, we have to prepare
# lm7k/MAKEINC/Make.inc.pgi
# lm7k/MAKEINC/Make.inc.pgi_mpik
# fpgw/exec/Make.inc.pgi_mpik
# fpgw/Wannier/
mkdir ${BINDIR}
echo Going to install required binaries and scripts to ${BINDIR} !
### viewvesta
cd StructureTool/
./makelink $BINDIR
### Use lm7K/Makefile
cd ../lm7K/
make PLATFORM=pgi LIBMATH="$MATH"
if [ ! $? == 0 ]; then
exit 1
fi
make PLATFORM=pgi BINDIR=$BINDIR install
if [ ! $? == 0 ]; then
exit 1
fi
make PLATFORM=pgi_mpik LIBMATH="$MATH"
if [ ! $? == 0 ]; then
exit 1
fi
make PLATFORM=pgi_mpik BINDIR=$BINDIR install
if [ ! $? == 0 ]; then
exit 1
fi
### Use fpgw/exec/makefile
cd ../fpgw/exec/
make PLATFORM=pgi LIBMATH="$MATH"
if [ ! $? == 0 ]; then
exit 1
fi
make PLATFORM=pgi BINDIR=$BINDIR install
if [ ! $? == 0 ]; then
exit 1
fi
make PLATFORM=pgi BINDIR=$BINDIR install2
if [ ! $? == 0 ]; then
exit 1
fi
### Use fpgw/Wannier/Makefile
cd ../Wannier/
make PLATFORM=pgi LIBMATH="$MATH"
if [ ! $? == 0 ]; then
exit 1
fi
make BINDIR=$BINDIR PLATFORM=pgi install
if [ ! $? == 0 ]; then
exit 1
fi
cd ../../TestInstall/
make mpi_size=4 all
if [ ! $? == 0 ]; then
exit 1
fi