@@ -45,6 +45,7 @@ cd ${sim_dir}
4545parse_config_file ${conf_file} " sim_config_general"
4646
4747lreal=${lreal:- true}
48+ lcpbin=${lcpbin:- true}
4849simrstm1_dir=${simrstm1_dir:- ${rst_dir} / ${caseid} $(date -u -d " ${datem1} " +% Y% m% d)}
4950
5051# ###################
@@ -54,6 +55,9 @@ if [[ "${modelid}" == *icon* ]]; then
5455
5556 parse_config_file ${conf_file} " sim_config_icon"
5657
58+ # copy executeable
59+ [[ " $lcpbin " == " true" ]] && cp $tsmp2_install_dir /bin/icon icon
60+
5761 # set defaults
5862 icon_latbc_dir=${icon_latbc_dir:- ${frc_dir} / icon/ latbc/ $(date -u -d " ${startdate} " +% Y% m)}
5963 icon_restartdt=${icon_restartdt:- ${simlensec} }
@@ -82,10 +86,6 @@ if [[ "${modelid}" == *icon* ]]; then
8286 fi
8387 fi
8488
85- # link executeable (will be replaced with copy in production)
86- # ln -sf $tsmp2_install_dir/bin/icon icon
87- cp $tsmp2_install_dir /bin/icon icon
88-
8989# copy namelist
9090 cp ${nml_dir} /icon/NAMELIST_icon NAMELIST_icon
9191 cp ${nml_dir} /icon/icon_master.namelist icon_master.namelist
@@ -131,24 +131,20 @@ if [[ "${modelid}" == *clm* ]]; then
131131
132132 parse_config_file ${conf_file} " sim_config_clm"
133133
134+ # copy executeable
135+ [[ " $lcpbin " == " true" ]] && cp $tsmp2_install_dir /bin/eclm.exe eclm
136+
134137# set defaults
135138 geo_dir_clm=${geo_dir_clm:- ${geo_dir} / eclm/ static}
136139 clm_tsp=${clm_tsp:- ${cpltsp_atmsfc} }
137140 clmoutfrq=${clmoutfrq:- -1} # in hr
138141 clmoutmfilt=${clmoutmfilt:- 24} # number of tsp in out
139142 clmoutvar=${clmoutvar:- ' TG' }
140143#
141- # domainfile_clm=domain.lnd.ICON-11_ICON-11.230302_landlake_halo.nc
142- # surffile_clm=surfdata_ICON-11_hist_16pfts_Irrig_CMIP6_simyr2000_c230302_gcvurb-pfsoil_halo.nc
143- # fini_clm=${rst_dir}/$(date -u -d "${datem1}" +%Y%m%d)/eclm/eCLM_eur-11u.clm2.r.$(date -u -d "${startdate}" +%Y-%m-%d)-00000.nc
144144 topofile_clm=${topofile_clm:- topodata_0.9x1.25_USGS_070110_stream_c151201.nc}
145145 fini_clm=${fini_clm:- ${simrstm1_dir} / eclm/ eCLM_eur-11u.clm2.r.$(date -u -d " ${startdate} " +% Y-% m-% d)-$(printf " %05d" $(( $(date -d " ${startdate} " +% s) % 86400 ))).nc}
146146 clm_frc_dir=${clm_frc_dir:- ${frc_dir} / eclm/ forcing/ }
147147
148- # link executeable
149- # ln -sf $tsmp2_install_dir/bin/eclm.exe eclm
150- cp $tsmp2_install_dir /bin/eclm.exe eclm
151-
152148# calculation for automated adjustment of clm forcing
153149# forcedate=$(date '+%s' -d "${datep1} + 1 month - 1 day")
154150 forcedate=$( date ' +%s' -d " ${datep1} + 1 month - 2 day" )
@@ -216,9 +212,8 @@ if [[ "${modelid}" == *parflow* ]]; then
216212#
217213 fini_pfl=${fini_pfl:- ${simrstm1_dir} / parflow/ ${EXP_ID} .out.${dateshort} .nc}
218214
219- # link executeable
220- # ln -sf $tsmp2_install_dir/bin/parflow parflow
221- cp $tsmp2_install_dir /bin/parflow parflow
215+ # copy executeable
216+ [[ " $lcpbin " == " true" ]] && cp $tsmp2_install_dir /bin/parflow parflow
222217
223218# set defaults
224219 parflow_tsp=${parflow_tsp:- $(echo " $cpltsp_sfcss / 3600" | bc -l)}
0 commit comments