-
Notifications
You must be signed in to change notification settings - Fork 6
/
compileAll.sh
executable file
·56 lines (43 loc) · 995 Bytes
/
compileAll.sh
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
#!/bin/bash
whsPath=`grep "wrfHydroScripts" ~/.wrfHydroScripts | cut -d '=' -f2 | tr -d ' '`
source $whsPath/helpers.sh
source $whsPath/sourceMe.sh
## always offline WRF HYDRO
export WRF_HYDRO=1
## check branch
whmPath=`grep "wrf_hydro_model" ~/.wrfHydroScripts | cut -d '=' -f2 | tr -d ' '`
cd $whmPath/trunk/NDHMS/
theBranch=`git branch | grep '*' | tr -d "*" | tr -d ' ' | stripColors`
echo "On Branch: $theBranch"
## 111=RND
#011 = 0ND
export HYDRO_REALTIME=0
export WRF_HYDRO_NUDGING=1
export HYDRO_D=1
compileTag -c
#110 = RN0
export HYDRO_REALTIME=1
export WRF_HYDRO_NUDGING=1
export HYDRO_D=0
compileTag -c
#111 = RND
export HYDRO_REALTIME=1
export WRF_HYDRO_NUDGING=1
export HYDRO_D=1
compileTag -c
#100 R00
export HYDRO_REALTIME=1
export WRF_HYDRO_NUDGING=0
export HYDRO_D=0
compileTag -c
#101
export HYDRO_REALTIME=1
export WRF_HYDRO_NUDGING=0
export HYDRO_D=1
compileTag -c
#001
export HYDRO_REALTIME=0
export WRF_HYDRO_NUDGING=0
export HYDRO_D=1
compileTag -c
exit 1