-
Notifications
You must be signed in to change notification settings - Fork 0
/
source_me
71 lines (55 loc) · 1.28 KB
/
source_me
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
#!/bin/bash
# Usage:
# $ source /path/to/source_me
# Helper functions
function __print()
{
if [ "$SILENT" == "0" ]; then
echo $@
fi
}
function __usage()
{
echo "Usage: source source_me"
}
# Settings
SILENT=0
# Process command line
while [ "$1" != "" ]; do
case $1 in
--silent)
SILENT=1
;;
-h | --help )
__usage
return 1
;;
* )
__usage
return 1
esac
shift
done
#
# Set paths
#
export PYLMPSPATH=`pwd`
__print "Set PATH to pylmps:"
__print $PYLMPSPATH
__print "Set PATH for xtb:"
export XTBPATH=/home/$USER/miniconda3/envs/molsys/share/xtb
__print "Set PATH to molsys:"
export PYTHONPATH=/home/$USER/sandbox/molsys:$PYTHONPATH
export PATH=/home/$USER/sandbox/molsys/scripts:$PATH
__print "Set PYTHONPATH to lammps interface"
export PYTHONPATH=/home/$USER/sandbox/lammps_newSept2020/python:$PYTHONPATH
export REAXFF_FILES=/home/$USER/sandbox/lammps_newSept2020/potentials
export PYTHONPATH=$PYLMPSPATH:$PYTHONPATH
export PATH=$PYLMPSPATH/scripts:$PATH
__print "Environment settings:"
__print "----------------------"
__print "PATH :" $PATH
__print "PYTHONPATH :" $PYTHONPATH
__print "PYTHON :" $(which python)
__print "AGENT :" $(whoami)
__print "MACHINE :" $(hostname)