-
Notifications
You must be signed in to change notification settings - Fork 130
[develop] Fix issues on AQM and NCO mode caused by new YAML interface PR #676 #722
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
Changes from all commits
1f8c5e7
86558bf
05db0c2
44a74de
e6f6ebc
761b9e4
2e6dca5
54b9250
df21e19
a563c75
34bffb9
715883a
4b4ec26
58e61e4
4a18dbc
02be7bb
7776094
5314fb7
5301a5a
296fedb
bca23d9
c53cb9e
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 | ||
|---|---|---|---|---|
|
|
@@ -138,16 +138,14 @@ Call to ex-script corresponding to J-job \"${scrfunc_fn}\" failed." | |||
| # | ||||
| #----------------------------------------------------------------------- | ||||
| # | ||||
| if [ "${FCST_LEN_HRS}" = "-1" ]; then | ||||
| for i_cdate in "${!ALL_CDATES[@]}"; do | ||||
| if [ "${ALL_CDATES[$i_cdate]}" = "${PDY}${cyc}" ]; then | ||||
| FCST_LEN_HRS="${FCST_LEN_CYCL_ALL[$i_cdate]}" | ||||
| break | ||||
| fi | ||||
| done | ||||
| if [ ${#FCST_LEN_CYCL[@]} -gt 1 ]; then | ||||
| cyc_mod=$(( ${cyc} - ${DATE_FIRST_CYCL:8:2} )) | ||||
| CYCLE_IDX=$(( ${cyc_mod} / ${INCR_CYCL_FREQ} )) | ||||
| FCST_LEN_HRS=${FCST_LEN_CYCL[$CYCLE_IDX]} | ||||
|
Collaborator
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. I don't think this logic works just right. If DATE_FIRST_CYCL starts at 18Z, and we're looking at the next 00Z cycle, we get: So we're left with a negative
Collaborator
Author
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. @christinaholtNOAA, I don't agree with you. {cyc} starts from a lower value. if {cyc} includes "06" and "18", its order will be ["06", "18"] (not ["18", "06"]). I think the 'cyc_mod' will not have a negative value in any cases because these variable forecast length hours are only set per day as you modified it in your former PR: ufs-srweather-app/ush/setup.py Line 681 in 662ff2a
What do you think about this? In the above example of ["06", "18"], the current condition will fail because their indexes will be [ "06/12", "18/12"]. With a new condition, they will be ["0", "1"] (["(6-6)/12", "(18-6)/12"]).
Collaborator
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. I am still concerned about the use case given that there would be a strong coupling between the In the above example, I was suggesting that these might be the user-defined settings for two cycles, where the first is meant to be a short forecast and the second a long one: This is a specific example of where I'm saying it might be better to require users to define This means that we don't have to handle the "special" cases and aren't so heavily coupling the user-defined dates to the forecast lengths.
Collaborator
Author
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. @christinaholtNOAA, I understand your concern. However, the change in this PR is better than the current one you made because it at least works for the special case. The current version will not work for both cases (my case as well as your case). In my opinion, the best solution is to use my original version: I understand that you didn't want to use
Collaborator
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. Leaning on ALL_CDATES is not a valid solution for when we want to run a real-time run indefinitely. Do you mind sharing the use case that you are trying to get running? The start and end date, and the forecast lengths you'd like to support?
Collaborator
Author
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.
Collaborator
Author
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. @christinaholtNOAA, if you don't agree with my change, please provide us a reasonable solution. This PR takes so long for review now. The AQM users are not able to use the develop branch now and they are waiting for this PR to be merged. @MichaelLueken, could you please ask other reviewers to review this PR? |
||||
|
|
||||
| fcst_len_hrs=$( printf "%03d" "${FCST_LEN_HRS}" ) | ||||
| if [ "${fhr}" = "${fcst_len_hrs}" ]; then | ||||
| touch "${COMIN}/${TN_RUN_POST}_${PDY}${cyc}_task_complete.txt" | ||||
| touch "${COMIN}/post_${PDY}${cyc}_task_complete.txt" | ||||
| fi | ||||
| fi | ||||
| # | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.