Skip to content

Commit

Permalink
Only copy ca_data restart files when CA is on
Browse files Browse the repository at this point in the history
The forecast job would attempt to copy the ca_data tiled restart
files even when cellular automata was off. Now it only copies them
if cellular automata is on.
  • Loading branch information
WalterKolczynski-NOAA committed Nov 22, 2024
1 parent 4db4b0d commit 3dfcb68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ush/forecast_predet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ FV3_restarts(){
# Create an array of FV3 restart files
local fv3_restart_files tile_files
fv3_restart_files=(coupler.res fv_core.res.nc)
tile_files=(fv_core.res fv_srf_wnd.res fv_tracer.res phy_data sfc_data ca_data)
tile_files=(fv_core.res fv_srf_wnd.res fv_tracer.res phy_data sfc_data)
if [[ ${DO_CA:-"NO"} == "YES" ]]; then
tile_files+=(ca_data)
fi
local nn tt
for (( nn = 1; nn <= ntiles; nn++ )); do
for tt in "${tile_files[@]}"; do
Expand Down

0 comments on commit 3dfcb68

Please sign in to comment.