Skip to content

Commit 8d6d3e9

Browse files
committed
IFS-SOURCE-ECWAM-SYNC: update preproc,preset,model runner scripts for updated namelists
1 parent 88ce0c5 commit 8d6d3e9

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

share/ecwam/scripts/ecwam_run_model.sh

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ for restart_time in $(read_config output.restart.at[:].time --format=%Y%m%d%H%M%
7676
NAOS+="&NAOS CLSOUT=\"${restart_time}\" /"
7777
done
7878

79+
# MODEL SETUP:
80+
##############
81+
wamnang=$(read_config directions)
82+
wamnfre=$(read_config frequencies)
83+
7984
nproma=$(read_config nproma --default=24)
8085

8186
# read timesteps
@@ -196,6 +201,9 @@ ln -s ${DATA_DIR}/${forcings_file} sfcwindin
196201

197202
cat > wam_namelist << EOF
198203
&NALINE
204+
NANG = ${wamnang},
205+
NFRE = 36,
206+
NFRE_RED = ${wamnfre},
199207
CLHEADER = " WAVE MODEL ",
200208
CBPLTDT = "${begofrn}",
201209
CEPLTDT = "${endofrn}",

share/ecwam/scripts/ecwam_run_preproc.sh

-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function cleanup() {
7373

7474
wamresol=$(read_config grid)
7575
wamnfre=$(read_config frequencies)
76-
wamnang=$(read_config directions)
7776
wambathy=$(read_config bathymetry)
7877

7978
assert_executable_is_available ${PREPROC} || abort 33
@@ -111,15 +110,13 @@ cat > procin <<EOF
111110
NFRE_RED= ${wamnfre},
112111
FR1= ${fr1},
113112
IFRE1= ${ifre1},
114-
NANG= ${wamnang},
115113
IRGG= ${irgg},
116114
XDELLA= ${xdella},
117115
XDELLO= ${xdella},
118116
AMOSOP= ${amosop},
119117
AMONOP= ${amonop},
120118
AMOWEP= ${amowep},
121119
AMOEAP= ${amoeap},
122-
DEPTHA= ${deptha},
123120
LAQUA= ${laqua},
124121
LLOBSTRCT= ${llobstrct},
125122
LLUNSTR = ${llunstr},

share/ecwam/scripts/ecwam_run_preset.sh

+8
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ begofrn=$(read_config begin --format="%Y%m%d%H%M%S")
143143
endofrn=$(read_config end --format="%Y%m%d%H%M%S")
144144
begoffo=$(read_config forcings.at[1].begin --format="%Y%m%d%H%M%S" --default=${endofrn} )
145145

146+
# MODEL SETUP:
147+
##############
148+
wamnang=$(read_config directions)
149+
wamnfre=$(read_config frequencies)
150+
146151
forcings_file=$(read_config forcings.file)
147152

148153
opti=1
@@ -206,6 +211,9 @@ cat > PREINFO <<EOF
206211
MARSTYPE = "an"
207212
YCLASS = "rd"
208213
YEXPVER = "wave"
214+
NANG = ${wamnang}
215+
NFRE = 36
216+
NFRE_RED = ${wamnfre}
209217
/
210218
EOF
211219

0 commit comments

Comments
 (0)