Skip to content

Commit 6338220

Browse files
committed
introduce geo_dir_oas - geo directory for oasis3-mct
1 parent 2fa5eb5 commit 6338220

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ctl/sim_ctl/sim_config.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ if [[ "${run_oasis}" == true ]]; then
273273

274274
parse_config_file ${conf_file} "sim_config_oas"
275275

276+
# set defaults
277+
geo_dir_oas=${geo_dir_oas:-${geo_dir}/oasis/static}
278+
276279
# copy namelist
277280
cp ${nml_dir}/oasis/namcouple_${modelid} namcouple
278281

@@ -288,9 +291,9 @@ if [[ "${run_oasis}" == true ]]; then
288291
sed -i "s/__parflowgpy__/$pfl_ngy/" namcouple
289292

290293
# copy remap-files
291-
[[ "$lreal" == "true" ]] && cp ${geo_dir}/oasis/static/masks.nc .
294+
[[ "$lreal" == "true" ]] && cp ${geo_dir_oas}/masks.nc .
292295
if [[ "${modelid}" == *parflow* ]]; then
293-
cp ${geo_dir}/oasis/static/rmp* .
296+
cp ${geo_dir_oas}/rmp* .
294297
fi
295298

296299
fi # if modelid == oasis

0 commit comments

Comments
 (0)