Skip to content

Commit

Permalink
updates for new gocart/mapl
Browse files Browse the repository at this point in the history
  • Loading branch information
JessicaMeixner-NOAA committed Oct 16, 2023
1 parent 2ed31de commit f766fd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion parm/ufs/chem/AERO_HISTORY.rc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ VERSION: 1
EXPID: gocart
EXPDSC: GOCART2g_diagnostics_at_c360
EXPSRC: GEOSgcm-v10.16.0

Allow_Overwrite: true

COLLECTIONS: 'inst_aod'
# 'inst_du_ss'
Expand Down
2 changes: 1 addition & 1 deletion scripts/exglobal_forecast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ FV3_out
[[ ${cplflx} = .true. ]] && MOM6_out
[[ ${cplwav} = .true. ]] && WW3_out
[[ ${cplice} = .true. ]] && CICE_out
[[ ${cplchm} = .true. ]] && GOCART_out
#[[ ${cplchm} = .true. ]] && GOCART_out
[[ ${esmf_profile:-} = .true. ]] && CPL_out
echo "MAIN: Output copied to COMROT"

Expand Down
24 changes: 12 additions & 12 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1033,22 +1033,22 @@ GOCART_postdet() {
for fhr in ${FV3_OUTPUT_FH}; do
local vdate=$(date --utc -d "${current_cycle:0:8} ${current_cycle:8:2} + ${fhr} hours" +%Y%m%d%H)

# Temporarily delete existing files due to noclobber in GOCART
if [[ -e "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4" ]]; then
rm -f "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
fi

#To Do: Temporarily removing this as this will crash gocart, adding copy statement at the end
#${NLN} "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4" \
# "${DATA}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
## Temporarily delete existing files due to noclobber in GOCART
#if [[ -e "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4" ]]; then
# rm -f "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
#fi

##To Do: Temporarily removing this as this will crash gocart, adding copy statement at the end
${NLN} "${COM_CHEM_HISTORY}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4" \
"${DATA}/gocart.inst_aod.${vdate:0:8}_${vdate:8:2}00z.nc4"
done
}

GOCART_out() {
echo "SUB ${FUNCNAME[0]}: Copying output data for GOCART"
#GOCART_out() {
# echo "SUB ${FUNCNAME[0]}: Copying output data for GOCART"

# Copy gocart.inst_aod after the forecast is run (and successfull)
# TO DO: this should be linked but there were issues where gocart was crashing if it was linked
${NCP} "${DATA}/gocart.inst_aod.*" "${COM_CHEM_HISTORY}/"
}
#${NCP} "${DATA}/gocart.inst_aod.*" "${COM_CHEM_HISTORY}/"
#}

0 comments on commit f766fd9

Please sign in to comment.