Project

General

Profile

eraint2lmrun.txt

Edoardo Bucchignani, 04/15/2014 10:05 AM

 
1
 !/usr/bin/ksh -x
2
#
3
# The IFS2LM Job
4
#
5
rm -f ifs2lm_job YU*
6

    
7
EXE=/users/home/isc012/CCLM/int2lm_120606_1.19/int2lm1 
8

    
9
################################################################################
10
#
11
#  Namelists for INT2LM
12
#
13
#    domain       : EURO-CORDEX
14
#    resolution   : 0.44 degree
15
#    driving data : ERA-Interim
16
#
17
#    For explanation of namelist parameters refer to http://www.clm-community.eu
18
#    --> Applications --> Evaluated Configurations
19
#
20
#    This file (without comment lines) will be automatically included as
21
#    here-document into the preprocessing script at script creation time. Some
22
#    variables will be substituted during the execution of the preprocessing
23
#    script (e.g. ${date}). Comment lines should begin with a hash mark '#'.
24
#
25
#    Please take care of mutual consistency of COSMO-CLM and INT2LM inputs.
26
#
27
################################## INT2LM ######################################
28
#
29

    
30
 cat > ifs2lm_job  << ****
31

    
32

    
33
cat > INPUT << end_input
34
 &CONTRL
35
! ydate_ini = "1970010100", 
36
  ydate_ini = "$1$20100", 
37
  hstart = 0.0, hstop = 744.0, hincbound = 6,
38
  linitial = .TRUE.,  lboundaries = .TRUE., lfilter_oro = .TRUE.,
39
  l_cressman = .TRUE., l_bicub_spl = .FALSE., lbdclim = .TRUE.,  
40
  yinput_model= 'CM',
41
  itype_aerosol = 2,
42
  ltime_mean = .TRUE., luvcor = .TRUE., lreorder = .TRUE.,
43
  lmulti_layer_in = .TRUE., lmulti_layer_lm = .TRUE.,
44
  itype_w_so_rel = 1,
45
  itype_t_cl = 1, itype_rootdp = 3,
46
  lprog_qi = .TRUE., lforest = .TRUE.,
47
  llake = .FALSE., llbc_smooth = .TRUE., nlbc_smooth = 10,
48
  nprocx = 2, nprocy = 2,
49
  nincwait = 5, nmaxwait = 20, 
50
  luse_t_skin = .TRUE.,
51
  itype_calendar =0, idbg_level = 99,
52
  lsso = .TRUE.,
53
 /END
54
 #
55
 &GRID_IN
56
  ie_in_tot=512, je_in_tot=256,
57
  ke_in_tot=60,
58
  pollat_in = 90.0, pollon_in = 180.0,
59
  dlon_in=0.703125, dlat_in=0.703125,pcontrol_fi=30000.
60
  startlat_in_tot = -89.4628219604492, startlon_in_tot  = -180.0,
61
  endlat_in_tot=89.4628219604492,endlon_in_tot=179.296875000000,
62
  ke_soil_in=3,
63
  czml_soil_in=0.015, 0.1, 0.405, 1.205,
64
 /END
65
 #
66
 # COSMO-CLM grid
67
 &LMGRID
68
  ielm_tot = 204, jelm_tot = 201, kelm_tot = 40,
69
  pollat = 39.25, pollon = -162.0, 
70
  dlon = 0.44, dlat = 0.44,
71
  startlat_tot = -44.77, startlon_tot = -49.77,
72
  ke_soil_lm = 7,
73
  czml_soil_lm=0.005, 0.02, 0.06, 0.18, 0.54, 1.62, 4.86, 14.58, 
74
  irefatm = 2, delta_t = 100.0, h_scal = 10000.0,
75
 /END
76
 &DATABASE
77
 /END
78
 #
79
 # PEP and coarse grid forcing data
80
 &DATA
81
  ie_ext=264, je_ext=321,
82
  ylmext_lfn='domain2014041416103.nc'
83
  ylmext_cat='/data/isc012/EURO-CORDEX/Run_EUR44',
84
  yinext_lfn = "ec_ext.nc",
85
  yinext_cat = "/data/isc012/EURO-CORDEX/Run_EUR44/",
86
  yin_cat = "/data/isc012/EURO-CORDEX/year$1",
87
  yinput_type = 'analysis',
88
  ytunit_in = 'd',
89
  ytunit_out = 'd',
90
  ylm_cat = "/data/isc012/EURO-CORDEX/Run_EUR44/lm_input",
91
  yinext_form_read = "ncdf",
92
  ylmext_form_read = "ncdf",
93
  yin_form_read = "ncdf",
94
  ylm_form_write = 'ncdf',
95
  nprocess_ini = 131, nprocess_bd = 132,
96
 /END
97
 &PRICTR
98
  igp_tot = 36,
99
  jgp_tot = 30,
100
  lchkin = .TRUE., lchkout = .TRUE.,
101
 /END
102
end_input
103

    
104
#################################################
105
# run the program
106
#################################################
107

    
108
rm -f YUCHKDAT YUTIMING YUDEBUG OUTPUT
109
#time mpirun -np $NP1 $EXE
110
bsub -a poe -n 4 -e error.%J -o output.%J -q poe_short mpirun.lsf $EXE  -np 4
111

    
112
#################################################
113
# cleanup
114

    
115
#################################################
116
#\rm INPUT  YU*
117

    
118
****
119
chmod u+x ifs2lm_job
120
./ifs2lm_job
121
exit
122
rm ifs2lm_job