diff --git a/README.md b/README.md index 897622067f1..d06083139e6 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,17 @@ generate a 3-day run case (test_3d) starting from 2016040100. From the /workflow ``` mkdir -p $EXPROOT (Note that $EXPROOT is the experiment directory that has been set in the user.yaml file.) -./setup_case.sh -p HERA coupled_free_forecast test_3d +./setup_case.sh -p HERA $CASE test2d or -./setup_case.sh -p HERA ../cases/coupled_free_forecast.yaml test_3d +./setup_case.sh -p HERA ../cases/$CASE.yaml test2d +where $CASE is one of the following: +- prototype_5: Used for UFS S2S Prototype 5 (Runs 35 day cases with atm-ocn-ice-wav coupling) +- coupled_free_forecast: 2 day tests for atm-ocn-ice coupling +- coupled_free_forecast_wave: 2 day test for atm-ocn-ice-wav coupling (same as p5 except shorter) +- atm_free_forecast: Run the atm only case with same ICs as coupled tests For Orion: First make sure you have python loaded: diff --git a/jobs/JGLOBAL_FORECAST b/jobs/JGLOBAL_FORECAST index e9ad054024c..5c548973864 100755 --- a/jobs/JGLOBAL_FORECAST +++ b/jobs/JGLOBAL_FORECAST @@ -32,6 +32,8 @@ status=$? ############################################## export pid=${pid:-$$} export outid=${outid:-"LL$job"} +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT export DATA=${DATA:-${DATAROOT}/${jobid:?}} mkdir -p $DATA cd $DATA diff --git a/jobs/JGLOBAL_FORECAST_MEDCOLD b/jobs/JGLOBAL_FORECAST_MEDCOLD index f7b7737d8b9..4a7fc74c527 100755 --- a/jobs/JGLOBAL_FORECAST_MEDCOLD +++ b/jobs/JGLOBAL_FORECAST_MEDCOLD @@ -32,6 +32,9 @@ status=$? ############################################## export pid=${pid:-$$} export outid=${outid:-"LL$job"} + +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT export DATA=${DATA:-${DATAROOT}/${jobid:?}} mkdir -p $DATA cd $DATA diff --git a/jobs/rocoto/coupled_ic.sh b/jobs/rocoto/coupled_ic.sh index 8e954db8187..f7eb548d9a1 100755 --- a/jobs/rocoto/coupled_ic.sh +++ b/jobs/rocoto/coupled_ic.sh @@ -20,6 +20,9 @@ set -x status=$? [[ $status -ne 0 ]] && exit $status +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT + ############################################################### # Source relevant configs configs="base fv3ic wave" diff --git a/jobs/rocoto/ocnpost.sh b/jobs/rocoto/ocnpost.sh index 183fd252814..d99a6420074 100755 --- a/jobs/rocoto/ocnpost.sh +++ b/jobs/rocoto/ocnpost.sh @@ -40,6 +40,9 @@ export pid=${pid:-$$} export outid=${outid:-"LL$job"} export jobid=${jobid:-"${outid}.o${pid}"} +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT + export DATA="$DATAROOT/${job}.${pid}" # DATA dir not used for now. diff --git a/jobs/rocoto/post.sh b/jobs/rocoto/post.sh index 8325360becb..4595a842bce 100755 --- a/jobs/rocoto/post.sh +++ b/jobs/rocoto/post.sh @@ -20,6 +20,8 @@ else restart_file=$ROTDIR/${CDUMP}.${PDY}/${cyc}/${CDUMP}.t${cyc}z.logf fi +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT #--------------------------------------------------------------- for fhr in $fhrlst; do diff --git a/jobs/rocoto/waveinit.sh b/jobs/rocoto/waveinit.sh index 2111727d6ee..132a359f110 100755 --- a/jobs/rocoto/waveinit.sh +++ b/jobs/rocoto/waveinit.sh @@ -7,6 +7,9 @@ echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" status=$? [[ $status -ne 0 ]] && exit $status +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT + ############################################################### echo echo "=============== START TO RUN WAVE INIT ===============" diff --git a/jobs/rocoto/wavepostsbs.sh b/jobs/rocoto/wavepostsbs.sh index 751bb9e8c48..0e327a204d4 100755 --- a/jobs/rocoto/wavepostsbs.sh +++ b/jobs/rocoto/wavepostsbs.sh @@ -7,6 +7,9 @@ echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" status=$? [[ $status -ne 0 ]] && exit $status +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT + ############################################################### echo echo "=============== START TO RUN WAVE POST_SBS ===============" diff --git a/jobs/rocoto/waveprep.sh b/jobs/rocoto/waveprep.sh index faef5533d9b..81cfe7eceab 100755 --- a/jobs/rocoto/waveprep.sh +++ b/jobs/rocoto/waveprep.sh @@ -7,6 +7,9 @@ echo "=============== START TO SOURCE FV3GFS WORKFLOW MODULES ===============" status=$? [[ $status -ne 0 ]] && exit $status +export DATAROOT="$RUNDIR/$CDATE/$CDUMP" +[[ ! -d $DATAROOT ]] && mkdir -p $DATAROOT + ############################################################### echo echo "=============== START TO RUN WAVE PREP ===============" diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh index 3b4acb0e268..d2791d540ec 100755 --- a/ush/forecast_postdet.sh +++ b/ush/forecast_postdet.sh @@ -497,7 +497,7 @@ if [ $SEND = "YES" ]; then fi fi -$NCP -p $DATA/input.nml $COMOUT/ +$NCP $DATA/input.nml $ROTDIR/${CDUMP}.${PDY}/${cyc}/ echo "SUB ${FUNCNAME[0]}: Output data for FV3 copied" } @@ -570,7 +570,8 @@ WW3_nml() WW3_out() { echo "SUB ${FUNCNAME[0]}: Copying output data for WW3" - # soft link commands insert here + $NCP $DATA/ww3_multi.inp $ROTDIR/${COMPONENTwave}.${PDY}/${cyc}/ + $NCP $DATA/mod_def.* $ROTDIR/${COMPONENTwave}.${PDY}/${cyc}/ } MOM6_postdet() diff --git a/ush/nems.configure.med_atm_ocn_ice.IN b/ush/nems.configure.med_atm_ocn_ice.IN index 973a49cecfd..afaea2bb0f0 100755 --- a/ush/nems.configure.med_atm_ocn_ice.IN +++ b/ush/nems.configure.med_atm_ocn_ice.IN @@ -42,7 +42,10 @@ ICE_attributes:: DumpFields = @[DumpFields] ProfileMemory = false OverwriteSlice = true - dbug_flag = 0 + mesh_ice = @[MESHICE] + stop_n = @[FHMAX] + stop_option = nhours + stop_ymd = -999 :: # CMEPS warm run sequence @@ -95,4 +98,6 @@ ALLCOMP_attributes:: restart_n = @[restart_interval_hours] restart_option = nhours restart_ymd = -999 + dbug_flag = 0 + use_coldstart = .true. :: diff --git a/ush/nems.configure.medcold_atm_ocn_ice.IN b/ush/nems.configure.medcold_atm_ocn_ice.IN index e74920d7098..5c9e736c429 100644 --- a/ush/nems.configure.medcold_atm_ocn_ice.IN +++ b/ush/nems.configure.medcold_atm_ocn_ice.IN @@ -42,7 +42,10 @@ ICE_attributes:: DumpFields = @[DumpFields] ProfileMemory = false OverwriteSlice = true - dbug_flag = 0 + mesh_ice = @[MESHICE] + stop_n = @[FHMAX] + stop_option = nhours + stop_ymd = -999 :: # CMEPS cold run sequence @@ -95,4 +98,5 @@ ALLCOMP_attributes:: restart_n = 1 restart_option = nhours restart_ymd = -999 + dbug_flag = 0 :: diff --git a/ush/parsing_namelists_CICE.sh b/ush/parsing_namelists_CICE.sh index 66edff52519..98b8d1ba287 100644 --- a/ush/parsing_namelists_CICE.sh +++ b/ush/parsing_namelists_CICE.sh @@ -375,17 +375,17 @@ cat > ice_in < ice_in < ice_in < ice_in <