-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathtesp.env
81 lines (72 loc) · 2.43 KB
/
tesp.env
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
78
79
80
81
# Start the virtual environment if available
if [[ -z $VIRTUAL_ENV ]]; then
if [ -d "$HOME/grid/venv/bin" ]; then
. $HOME/grid/venv/bin/activate
echo "Using python virtual environment path -> $VIRTUAL_ENV"
else
echo "No python virtual environment has been set!"
fi
else
echo "Already using python virtual environment path -> $VIRTUAL_ENV"
fi
# Find the absolute script path
pushd . > '/dev/null';
SCRIPT_PATH="${BASH_SOURCE[0]:-$0}";
while [ -h "$SCRIPT_PATH" ];
do
cd "$( dirname -- "$SCRIPT_PATH"; )";
SCRIPT_PATH="$( readlink -f -- "$SCRIPT_PATH"; )";
done
cd "$( dirname -- "$SCRIPT_PATH"; )" > '/dev/null';
SCRIPT_PATH="$( pwd; )";
popd > '/dev/null';
# ===================================================
# This section should be checked by user before running
# Co-simulation user and host docker
# User, password and directory in docker is worker
export SIM_HOST=gage.pnl.gov
export SIM_GID=9002
export SIM_GRP=runner
export SIM_UID=1001
export SIM_USER=worker
export SIM_HOME=/home/$SIM_USER
# TESP exports
# not defined in dockerfile
# GRID_DIR=$HOME/grid
# defined dockerfiles
# REPO_DIR=$SIM_HOME/repo
# INSTDIR=$SIM_HOME/tenv
# TESPDIR=$SIM_HOME/tesp
# ===================================================
# Build scripts
export DOCKER_DIR=$SCRIPT_PATH/scripts/docker
export BUILD_DIR=$SCRIPT_PATH/scripts/build
# TESP exports
export GRID_DIR=$HOME/grid
export REPO_DIR=$GRID_DIR/repo
export INSTDIR=$GRID_DIR/tenv
export TESPDIR=$SCRIPT_PATH
# COMPILE exports
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export PYHELICS_INSTALL=$INSTDIR
export GLPATH=$INSTDIR/lib/gridlabd:$INSTDIR/share/gridlabd
export CPLUS_INCLUDE_PATH=/usr/include/hdf5/serial:$INSTDIR/include
export FNCS_INCLUDE_DIR=$INSTDIR/include
export FNCS_LIBRARY=$INSTDIR/lib
export LD_LIBRARY_PATH=$INSTDIR/lib
export LD_RUN_PATH=$INSTDIR/lib
# export BENCH_PROFILE=1
# PATH
export PATH=$INSTDIR/bin:$PATH
export PATH=$JAVA_HOME:$PATH
export PATH=$PATH:$INSTDIR/energyplus
export PATH=$PATH:$INSTDIR/energyplus/PreProcess
export PATH=$PATH:$INSTDIR/energyplus/PostProcess
export PATH=$PATH:$TESPDIR/scripts/helpers
# PSST environment variables
export PSST_SOLVER=cbc
# 'PSST_SOLVER path' -- one of "cbc", "ipopt", "/ibm/cplex/bin/x86-64_linux/cplexamp"
export PSST_WARNING=ignore
# 'PSST_WARNING action' -- one of "error", "ignore", "always", "default", "module", or "once"
# PROXY export if needed
# export HTTPS_PROXY=http://proxy01.pnl.gov:3128