-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathENVIRONMENT_VARIABLES
39 lines (33 loc) · 1.02 KB
/
ENVIRONMENT_VARIABLES
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
#The ABSOLUTE PATH of the bin folder containing the QE executables (pw.x, pp.x)
#BIN_DIR=
if [ -d "$BIN_DIR" ]; then
if [ ! -f $BIN_DIR/pw.x ]; then
echo "Can't find pw.x in '$BIN_DIR'..."
echo "Attempting to find valid version of espresso in PATH..."
BIN_DIR=""
fi
fi
if [[ $BIN_DIR == "" ]]; then
BIN_DIR=`dirname $(which pw.x)`
fi
if [[ $BIN_DIR == "" ]]; then
echo "Failed to find espresso installation."
echo "Specify manual installation directory in the BIN_DIR env variable"
exit
fi
#The ABSOLUTE PATH of the folder containing the Pseudopotential files .UPF
PSEUDO_DIR='../../Pseudo'
if [[ `which realpath` != "" ]]; then
PSEUDO_DIR=`realpath $PSEUDO_DIR`
elif [[ `which readlink` != "" ]]; then
app=`readlink $PSEUDO_DIR`
if [[ $app != "" ]]; then
PSEUDO_DIR=$app
fi
fi
#The RELATIVE PATH of the folder to contain temporary/restart QE files
TMP_DIR='./tmp'
#This is the default for running in serial
RUN_COMMAND=""
#For parallel execution uncomment this (remove the first # symbol)
#RUN_COMMAND="mpirun -np 2"