-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add taskid and run deterministic and EnKF DA cycles. #524
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,32 +62,13 @@ This is the J-job script for the prep_cyc tasks for the specified cycle. | |
|
||
export pid=${pid:-$$} | ||
export RUN=${RUN:-rrfs} | ||
export jobid=${taskid} | ||
|
||
export mem_num=m$(echo "${ENSMEM_INDX}") | ||
|
||
export CYCLE_TYPE=${CYCLE_TYPE:-prod} | ||
export CYCLE_SUBTYPE=${CYCLE_SUBTYPE:-empty} | ||
#export ctrlpath="" | ||
if [ "${CYCLE_TYPE}" = "spinup" ]; then | ||
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then # EnKF has spinup forecasts | ||
export INPUT_DATA=${DATAROOT}/${RUN}_forecast_spinup_${mem_num}_${envir}_${cyc}/INPUT | ||
if [ "${DO_ENSINIT}" = "TRUE" ] && [ "${CYCLE_SUBTYPE}" = "ensinit" ]; then | ||
export INPUT_DATA=${DATAROOT}/${RUN}_forecast_ensinit_${mem_num}_${envir}_${cyc}/INPUT | ||
fi | ||
# if [ "${DO_ENSINIT}" = "TRUE" ] && [ "${CYCLE_SUBTYPE}" = "spinup" ]; then | ||
# ctrlpath=${ENSCTRL_DATAROOT} | ||
# fi | ||
else | ||
export INPUT_DATA=${DATAROOT}/${RUN}_forecast_spinup_${envir}_${cyc}/INPUT | ||
# ctrlpath=${ENSCTRL_DATAROOT} | ||
fi | ||
else | ||
if [ "${DO_ENSEMBLE}" = "TRUE" ]; then | ||
export INPUT_DATA=${DATAROOT}/${RUN}_forecast_${mem_num}_${envir}_${cyc}/INPUT | ||
else | ||
export INPUT_DATA=${DATAROOT}/${RUN}_forecast_${envir}_${cyc}/INPUT | ||
fi | ||
fi | ||
export INPUT_DATA=${DATAROOT}/${taskid}/INPUT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we expect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it should be |
||
|
||
mkdir -p ${INPUT_DATA} | ||
cd ${INPUT_DATA} | ||
|
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question for you and @BenjaminBlake-NOAA
Since jobid is intended to be passed in from the "job card" - ecflow job in production, should we define it more like this?
export jobid=${jobid:-${taskid}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MatthewPyle-NOAA I agree that definition of $jobid is probably best, since we will replace $taskid with $job.$PBS_JOBID eventually.