Project

General

Profile

cosmo_NORWAY022_job.sh

Runscript (generating INPUT_* files) for 2.5km run - Andreas Dobler, 08/24/2016 11:19 AM

 
1
#!/bin/bash
2
#PBS -A mifa01mk
3
#PBS -m n
4
#PBS -N cosmo_no022
5
#PBS -l select=32:ncpus=32:mpiprocs=16
6
#PBS -o /work/dobler/COSMO/cclm_012/cclm_out.out
7
#PBS -j oe
8
#PBS -l walltime=80:00:00
9

    
10
cd /work/dobler/COSMO/cclm_012
11
rm -f YU* M_*
12

    
13
#################################################
14
# global settings
15
# DINI = Initialisation date (cold start)
16
# DSTA = Starting date of this run (restart, cont. run)
17
# DSTP = Stopping date of this run
18
# HOUTINC = Hours increment to write output files
19
#################################################
20
DINI=1988060100
21
DSTA=2000010100
22
DSTP=2001010100
23

    
24
HSTART=`/home/metno/dobler/bin/cfu get_hours $DINI $DSTA`
25
HSTOP=`/home/metno/dobler/bin/cfu get_hours $DINI $DSTP`
26
HOUTINC=6
27
HINC=`expr $HSTOP - $HSTART`
28
HRESINC=`expr $HINC / 12`
29
#################################################
30
# cat together the INPUT*-files
31
#################################################
32

    
33
cat > INPUT_ORG << end_input_org
34
 &LMGRID
35
  startlat_tot  = -4.796, startlon_tot  = -2.376,
36
  pollat=11.6,        pollon=-162.0,
37
  dlat=0.022,          dlon=0.022,
38
  ie_tot=260,         je_tot=350,        ke_tot=40,
39
 /
40
 &RUNCTL
41
  hstart = $HSTART.0,  hstop  = $HSTOP.0,   dt      = 10.0,    ydate_ini='$DINI',
42
  nprocx = 32,  nprocy = 16,   nprocio = 0,
43
  lphys      = .TRUE.,   luse_rttov    = .FALSE.,   luseobs = .FALSE.,  leps = .FALSE.,
44
  lreorder   = .FALSE.,  lreproduce    = .TRUE.,   itype_timing = 4,
45
  ldatatypes = .FALSE.,  ltime_barrier = .FALSE.,  ncomm_type=3,
46
  nboundlines=3, idbg_level = 2, lartif_data=.FALSE,
47
  ldfi=.FALSE., ldebug_io=.FALSE., lprintdeb_all=.FALSE.,
48
  hincmxt=24, hincmxu=24,
49
  ldump_ascii=.FALSE.,
50
  itype_calendar=0,
51
 /
52
 &TUNING
53
  c_soil   =   1.0,
54
  clc_diag =   0.5,
55
  crsmin   = 150.0,
56
  qc0      =   0.0,
57
  q_crit   =   4.0,
58
  qi0      =   0.0,
59
  rat_can  =   1.0,
60
  rat_lam  =   1.0,
61
  tur_len  = 500.0,
62
  v0snow   =  20.0,
63
  wichfakt =   0.0,
64
  tkmmin   =   1.0,
65
  tkhmin   =  0.35,
66
  rlam_heat=0.5249,
67
  uc1      =0.0626,
68
  radfac   =  0.50,
69
  soilhyd  =  1.62,
70
  fac_rootdp2= 0.9,
71
  entr_sc  =1.86E-04,
72
 /
73
end_input_org
74

    
75
cat > INPUT_INI  << end_input_ini
76
 &INICTL
77
  ndfi  = 2, 
78
  nfilt = 1,
79
  tspan = 600.0,
80
  dtbak = 15.0,
81
  dtfwd = 15.0,
82
  taus  = 600.0,
83
 /
84
end_input_ini
85

    
86
cat > INPUT_IO  << end_input_io
87
 &IOCTL
88
  lasync_io=.FALSE., ngribout=2,
89
  yform_read='ncdf',
90
  lbdclim=.TRUE.
91
  ymode_write='w  ',
92
  nhour_restart=$HSTART,$HSTOP,$HRESINC,
93
  ydir_restart='/work/dobler/COSMO/cclm_012/output_restart',
94
  ytunit_restart='d',
95
  yncglob_institution="Meteorologisk institutt, Oslo, Norway",
96
  yncglob_title="NORWAY022 dr. by CCLM_5.0_MET011 - MPI_hist",
97
  yncglob_source="cosmo_131108_5.00_clm6, int2lm_131101_2.00_clm4",
98
  yncglob_project_id="MET-DOWNSCALE",
99
  yncglob_experiment_id="MET012",
100
  ncglob_realization=1,
101
  yncglob_contact="andreasd@met.no",
102
  yncglob_references="http://www.clm-community.eu/",
103
 /
104
 &DATABASE
105
 /
106
 &GRIBIN
107
  ydirini='/work/dobler/COSMO/cclm_012/input',
108
  ydirhhl='/work/dobler/COSMO/cclm_012/input',
109
  ydirbd='/work/dobler/COSMO/cclm_012/input',
110
  lana_qi=.TRUE.,
111
  llb_qi=.TRUE.,
112
  lana_qr_qs = .TRUE.,
113
  llb_qr_qs = .TRUE.,
114
  lana_qg    = .FALSE.,
115
  llb_qg    = .FALSE.,
116
  hincbound=3,
117
  lchkini=.TRUE.,
118
  lchkbd=.TRUE.,
119
  lan_t_so0=.TRUE.,
120
  lan_t_snow=.TRUE.,
121
  lan_t_cl=.TRUE.,
122
  lan_w_snow=.TRUE.,
123
  lan_w_i=.TRUE.,
124
  lan_w_cl=.TRUE.,
125
  lan_vio3=.TRUE.,
126
  lan_hmo3=.TRUE.,
127
  lan_plcov=.TRUE.,
128
  lan_lai=.TRUE.,
129
  lan_rootdp=.TRUE.,
130
  ytunitbd='d',
131
 /
132
 &GRIBOUT
133
  hcomb=$HSTART,$HSTOP,1,
134
  yvarml='ALHFL_S', 'ALWD_S', 'ALWU_S', 'ASHFL_S', 'ASOD_T', 'ASOB_T', 'ASOB_S', 'ATHB_T', 'ATHB_S', 'ASWDIFD_S', 'ASWDIFU_S', 'ASWDIR_S', 'CLCT', 'CLCL', 'CLCM', 'CLCH', 'CLC_CON', 'DURSUN', 'PMSL', 'PS', 'QV_2M', 'T_2M', 'TMAX_2M', 'TMIN_2M', 'T_G', 'U_10M', 'V_10M', 'RELHUM_2M', 'ALB_RAD', 'SNOW_CON', 'SNOW_GSP', 'RAIN_CON', 'RAIN_GSP', 'TOT_PREC', 'H_SNOW', 'RUNOFF_G', 'RUNOFF_S', 'VABSMX_10M', 'VMAX_10M', 
135
  yvarpl=' ',
136
  yvarzl=' ',
137
  luvmasspoint=.TRUE.,
138
  lcheck=.FALSE.,
139
  lwrite_const=.FALSE.,
140
  ytunit='d',
141
  yform_write='ncdf',
142
  ydir='/work/dobler/COSMO/cclm_012/output_restart',
143
 /
144
 &GRIBOUT
145
  hcomb=$HSTART,$HSTOP,$HOUTINC,
146
  yvarml=' ',
147
  yvarpl='QV','T','U','V',
148
  plev=200.,500.,800.,850.,
149
  yvarzl=' ',
150
  luvmasspoint=.TRUE.,
151
  lcheck=.FALSE.,
152
  lwrite_const=.FALSE.,
153
  ytunit='d',
154
  yform_write='ncdf',
155
  ydir='/work/dobler/COSMO/cclm_012/output_restart_plev',
156
 /
157

    
158
end_input_io
159

    
160
cat > INPUT_DYN << end_input_dyn
161
 &DYNCTL
162
  l2tls=.true.,
163
  alphaass=0.53,
164
  rlwidth=25000.0,
165
  l_diff_Smag=.FALSE., 
166
  y_scalar_advect='Bott2', 
167
  ldyn_bbc=.TRUE.,
168
  nrdtau=6,
169
  itype_fast_waves=1,
170
  itype_bbc_w=1,
171
  iadv_order=3,
172
 /
173
end_input_dyn
174

    
175
cat > INPUT_PHY << end_input_phy
176
 &PHYCTL
177
  ico2_rad=8,
178
  ke_soil=9,
179
  czml_soil=0.005,0.025,0.07,0.16,0.34,0.7,1.42,2.86,5.74,11.5,
180
  czbot_w_so=4.0,
181
  lconv=.TRUE.,
182
  nincconv=4,
183
  itype_conv=3,
184
  lconf_avg=.true.
185
  limpltkediff=.FALSE.,
186
  lseaice=.FALSE.,
187
  llake=.FALSE.,
188
  lsso=.FALSE.,
189
  itype_heatcond=2,
190
  itype_evsl=3,
191
  itype_albedo=2,
192
  itype_root=2,
193
 /
194
end_input_phy
195

    
196
cat > INPUT_DIA << end_input_dia
197
 &DIACTL
198
 /
199
end_input_dia
200

    
201
cat > INPUT_EPS << end_input_eps
202
 &EPSCTL
203
 /
204
end_input_eps
205

    
206
cat > INPUT_ASS << end_input_ass
207
 &NUDGING
208
  lnudge  =.false.,
209
end_input_ass
210

    
211
#################################################
212
# run the program
213
#################################################
214

    
215
#################################
216
module load netcdf mpt
217

    
218
mpiexec_mpt cclm.exe
219

    
220
#################################################
221
# cleanup
222
#################################################
223

    
224
#rm -f INPUT_ORG INPUT_IO INPUT_DYN INPUT_DIA INPUT_PHY INPUT_INI
225
#rm -f INPUT_ASS INPUT_SAT INPUT_EPS
226