forked from ImperialCollegeLondon/poreFoam-singlePhase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
32 lines (23 loc) · 972 Bytes
/
bashrc
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
#!/bin/bash
if [ -n "$PoreScaleDir" ]; then
echo "Info: PoreScaleDir(=$PoreScaleDir) is NOT reset from "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
else
export PoreScaleDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export myBinDir=$PoreScaleDir/bin
#: ${CXX:=g++-6}; export CXX
export PATH=$PATH:$PoreScaleDir/scripts
export PATH=$PATH:$PoreScaleDir/scripts/misc
export PATH=$PATH:$PoreScaleDir/scripts/twoPhase
export PATH=$PATH:$PoreScaleDir/scripts/networkModel
export PATH=$PATH:$PoreScaleDir/scripts/singlePhase
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$myBinDir
export PATH=$PATH:$myBinDir
if ! [ -d $myBinDir ]; then
mkdir -p $myBinDir
fi
fi
# to change based on the version of poreFoam, used by AllRun* scripts
# single-phase codes and preprocessing codes for two-phase flow solver
export poreFoamBashrc="$PoreScaleDir/poreFoam/bashrc"
# two-phase flow solver
export poreFoamBashrcExtend="$PoreScaleDir/interfoamccf/bashrc"