Skip to content

Commit

Permalink
Merge branch 'feature/marineenvar' of https://github.com/guillaumever…
Browse files Browse the repository at this point in the history
…nieres/global-workflow into feature/marineenvar
  • Loading branch information
guillaumevernieres committed Dec 3, 2024
2 parents f4959c0 + 618b92c commit a8f3768
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ush/forecast_postdet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,14 @@ CICE_postdet() {
else # "${RERUN}" == "NO"
restart_date="${model_start_date_current_cycle}"
cice_restart_file="${COMIN_ICE_RESTART_PREV}/${restart_date:0:8}.${restart_date:8:2}0000.cice_model.res.nc"
# Start the deterministic from the JEDI/SOCA analysis if the Marine DA in ON
if (( MEMBER == 0 )) && [[ "${DO_JEDIOCNVAR:-NO}" == "YES" ]]; then
cice_restart_file="${COMIN_ICE_ANALYSIS}/${restart_date:0:8}.${restart_date:8:2}0000.cice_model_anl.res.nc"
fi
# Ignore the JEDI/SOCA ensemble analysis for the ensemble members if DO_START_FROM_JEDIICE is OFF
if (( MEMBER > 0 )) && [[ "${DO_JEDIOCNVAR:-NO}" == "YES" ]] && [[ "${DO_STARTMEM_FROM_JEDIICE:-NO}" == "YES" ]]; then
cice_restart_file="${COMIN_ICE_ANALYSIS}/${restart_date:0:8}.${restart_date:8:2}0000.cice_model_anl.res.nc"
if [[ "${DO_JEDIOCNVAR:-NO}" == "YES" ]]; then
if (( MEMBER == 0 )); then
# Start the deterministic from the JEDI/SOCA analysis if the Marine DA in ON
cice_restart_file="${COMIN_ICE_ANALYSIS}/${restart_date:0:8}.${restart_date:8:2}0000.cice_model_anl.res.nc"
elif (( MEMBER > 0 )) && [[ "${DO_STARTMEM_FROM_JEDIICE:-NO}" == "YES" ]]; then
# Ignore the JEDI/SOCA ensemble analysis for the ensemble members if DO_START_FROM_JEDIICE is OFF
cice_restart_file="${COMIN_ICE_ANALYSIS}/${restart_date:0:8}.${restart_date:8:2}0000.cice_model_anl.res.nc"
fi
fi
fi

Expand Down

0 comments on commit a8f3768

Please sign in to comment.