-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.bash
28 lines (25 loc) · 1.1 KB
/
run.bash
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
#!/usr/bin/env bash
#Review these variables before running:
description='test_case'
namelist_file='options.nml'
spinup_years=10
only_spinup='True'
CLM_version='old' #"old" or "new", "old" uses old variable names.
make
mkdir Spinup_values
mkdir ./results/${description}
mkdir ./results/${description}/nml_options
mkdir ./results/${description}/Spinup_values
cp ./src/paramMod.f90 ./results/${description}/parameters_${description}_${site}.txt
cp ./src/mycmimMod.f90 ./results/${description}/main_${description}_${site}.txt
for site in 31464_Hurdal
do
echo ${site}
cp options.nml ./results/${description}/nml_options/options_${description}_${site}.txt
clm_data_file='./test/'${site}'_historical/lnd/hist/'${site}'_historical.clm2.'
clm_mortality_file='./test/31464_Hurdal_mortality/mort_'${site}'_'
clm_surface_file='./test/surfdata_'${site}'_simyr2000.nc'
./run_script_dev $site $description $clm_data_file $clm_mortality_file $clm_surface_file $namelist_file "./results/"${description}"/" $spinup_years $only_spinup $CLM_version
done
mv Spinup_values/* ./results/${description}/Spinup_values/
rm -r Spinup_values