Skip to content

Commit

Permalink
Move input.nml to history directory
Browse files Browse the repository at this point in the history
`input.nml` was formerlly being placed in the `COM_ATMOS_INPUT` directory.
However, this directory is only present for cold-starts. This led to the
file being linked as the directory name because the filename wasn't included
being used for the link target. While we could create an input directory to
hold just the one file, that is unnecessary and is likely not the best
location for the file anyway. Now it is placed in the history directory.

Refs: NOAA-EMC#761
  • Loading branch information
WalterKolczynski-NOAA committed Apr 13, 2023
1 parent 94fba2e commit e695ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ data_out_GFS() {
done
fi
elif [[ ${RUN} =~ "gfs" ]]; then
${NCP} ${DATA}/input.nml ${COM_ATMOS_INPUT}
${NCP} "${DATA}/input.nml" "${COM_ATMOS_HISTORY}/input.nml"
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion ush/hpssarch_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if [[ ${type} = "gfs" ]]; then
# This uses the bash extended globbing option
{
echo "./logs/${PDY}${cyc}/gfs!(arch).log"
echo "${COM_ATMOS_INPUT/${ROTDIR}\//}/input.nml"
echo "${COM_ATMOS_HISTORY/${ROTDIR}\//}/input.nml"

if [[ ${MODE} = "cycled" ]]; then
echo "${COM_ATMOS_ANALYSIS/${ROTDIR}\//}/${head}gsistat"
Expand Down

0 comments on commit e695ac0

Please sign in to comment.