-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables
executable file
·34 lines (29 loc) · 2.03 KB
/
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
#!/usr/bin/env bash
#Change these variables to match your versions
wrf_major_version="3"
wrf_minor_version="7.1"
mpich_compilers="CC=$(which mpicc) FC=$(which mpifort)" #This sets the compilers to be used when building with MPICH. [Default: "CC=mpicc FC=mpif90"]
#This can force the script to use a particular package manager. Use with caution.
#Accepted values: auto, apt, yum, brew. Default: auto.
#Note: These MUST be lowercase.
force_package_manager="auto"
#Toggles for optional components
verbose=false #This will make the WRFSetup.sh script print a lot more information. Only use it for debugging. [Default: false]
build_obsgrid=false #This will make the WRFSetup.sh script attempt to compile OBSGRID. [Default: false]
keep_namelists=true #WRF sometimes deletes namelist files during recompile or clean operations. This backs them up and restores them. [Default: true]
use_wrf_regex_fixes=true #If true, this script will automatically repair the configure.wrf file via a few perl regex scripts [Default: true]
use_wps_regex_fixes=true #If true, this script will automatically repair the configure.wps file via a few perl regex scripts [Default: true]
use_obsgrid_regex_fixes=true #If true, this script will automatically repair the configure.oa file via a few perl regex scripts [Default: true]
force_extract_tars=false #If true, the script always extracts every tarball, regardless if they already have been extracted [Default: false]
lazy_recompile=true #Don't recompile already compiled libs [Default: true]
#Paths
#Unlike WRF and WPS, the geogrid data can be extracted to any location. [Default: "geog"]
#This path can be relative to the run directory (like the default value) or an absolute path.
geog_path="geog"
backup_dir="$(pwd)" #The directory used for backups. [Default: "$(pwd)", the directory from which the script was run]
#Don't change any variables below this line unless absolutely necessary
wrf_version=$wrf_major_version.$wrf_minor_version
wrf_path="WRFV$wrf_major_version"
wrf_chem_path="$wrf_path/chem"
wps_path="WPS"
obsgrid_path="OBSGRID"