Skip to content

Commit

Permalink
FIXUP: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Dec 21, 2023
1 parent aa50a0e commit e527b8f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion share/ecwam/scripts/ecwam_run_preproc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ cat > procin <<EOF
LLOBSTRCT= ${llobstrct},
LLUNSTR = ${llunstr},
IFORM= 1,
ITEST= 0,
ITEST= 2,
ITESTB= 4,
IBOUNC= 0,
IBOUNF= 0, AMOSOC= 0.0, AMONOC= 0.0, AMOWEC= 0.0, AMOEAC= 0.0
Expand Down
22 changes: 16 additions & 6 deletions share/ecwam/scripts/ecwam_run_preset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,13 @@ begoffo=$(read_config forcings.at[1].begin --format="%Y%m%d%H%M%S" --default=${e

# MODEL SETUP:
##############

wamresol=$(read_config grid)
wamnang=$(read_config directions)
wamnfre=$(read_config frequencies)
wambathy=$(read_config bathymetry)

nproma=$(read_config nproma --default=24)
forcings_file=$(read_config forcings.file)

opti=1
Expand All @@ -164,6 +168,9 @@ assert_executable_is_available ${PRESET} || abort 4
workdir preset
ln -sf ../config.yml config.yml

source ${SCRIPTS_DIR}/ecwam_configure.sh
ecwam_configure $wamresol $wamnfre $wambathy

#. Verify that all input files produced are available
#.###################################################

Expand Down Expand Up @@ -192,28 +199,31 @@ ln -s ${DATA_DIR}/${forcings_file} sfcwindin
cat > PREINFO <<EOF
&NALINE
HEADER = " WAVE MODEL INITIALISATION "
NANG = ${wamnang}
NFRE = 36
NFRE_RED = ${wamnfre}
FR1 = ${fr1},
IFRE1 = ${ifre1},
CPATH = "${WORK_DIR}"
CDATEA = "${begofrn}"
IOPTI = ${opti}
ITEST = 0
ITESTB = 0
ALFA = 1.800000E-02
ITESTB = 4
IDELWI = 6
ALFA = 0.01
FM = ${fmax}
GAMMA = 3.000000
SA = 7.000000E-02
SB = 9.000000E-02
THETA = 0.0
FETCH = ${fetch}
LLUNSTR = ${llunstr}
! IDELWI = 21600
CLTUNIT = "S"
LGRIBOUT = ${lgribout}
MARSTYPE = "an"
YCLASS = "rd"
YEXPVER = "wave"
NANG = ${wamnang}
NFRE = 36
NFRE_RED = ${wamnfre}
NPROMA_WAM= ${nproma},
/
EOF

Expand Down

0 comments on commit e527b8f

Please sign in to comment.