Skip to content
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

COM_MED_RESTART_PREV is not defined #2528

Closed
JessicaMeixner-NOAA opened this issue Apr 24, 2024 · 5 comments · Fixed by #2543
Closed

COM_MED_RESTART_PREV is not defined #2528

JessicaMeixner-NOAA opened this issue Apr 24, 2024 · 5 comments · Fixed by #2543
Labels
bug Something isn't working triage Issues that are triage

Comments

@JessicaMeixner-NOAA
Copy link
Contributor

What is wrong?

COM_MED_RESTART_PREV in ush/forecast_postdet.sh is not defined https://github.com/NOAA-EMC/global-workflow/blob/develop/ush/forecast_postdet.sh#L698. This is only defined in scripts/exglobal_stage_ic.sh

What should have happened?

COM_MED_RESTART_PREV should be defined

What machines are impacted?

All or N/A, Hera

Steps to reproduce

Check out the develop branch, build, link and run the C48mx500_3DVarAOWCDA test, which have now work with updated GSI and GDAS app hashes updated. I have a branch on hera with this but without some recent commits to develop that show that this test should work.

Additional information

This is required to turn back on C48mx500_3DVarAOWCDA

Do you have a proposed solution?

Perhaps something like the definition in stage ic routine:
RUN=${rCDUMP} YMD=${gPDY} HH=${gcyc} declare_from_tmpl COM_MED_RESTART_PREV:COM_MED_RESTART_TMP
is needed.

@JessicaMeixner-NOAA JessicaMeixner-NOAA added bug Something isn't working triage Issues that are triage labels Apr 24, 2024
@JessicaMeixner-NOAA
Copy link
Contributor Author

This appears to have fixed the issue:

 git diff ush/forecast_postdet.sh
diff --git a/ush/forecast_postdet.sh b/ush/forecast_postdet.sh
index 1c0c50de..b3dc2672 100755
--- a/ush/forecast_postdet.sh
+++ b/ush/forecast_postdet.sh
@@ -695,6 +695,7 @@ CMEPS_postdet() {
       else
         restart_date="${current_cycle}"
       fi
+      RUN=${rCDUMP} YMD=${restart_date:0:8} HH=${restart_date:8:2} declare_from_tmpl COM_MED_RESTART_PREV:COM_MED_RESTART_TMPL
       cmeps_restart_file="${COM_MED_RESTART_PREV}/${restart_date:0:8}.${restart_date:8:2}0000.ufs.cpld.cpl.r.nc"
     fi
 

Tests are still running, but the forecast has at least started.

@JessicaMeixner-NOAA
Copy link
Contributor Author

I can confirm that the gdasforecast job now runs successfully. I'll make a PR with changes along with the changes to re-enable the C48mx500_3DVarAOWCDA test.

@aerorahul
Copy link
Contributor

aerorahul commented Apr 24, 2024

I experienced this yesterday when working on a bugfix.
The changes proposed should be in JGLOBAL_FORECAST and not in forecast_postdet.sh.

❯❯❯ git diff jobs/
diff --git i/jobs/JGLOBAL_FORECAST w/jobs/JGLOBAL_FORECAST
index 989f6975..6c4200dd 100755
--- i/jobs/JGLOBAL_FORECAST
+++ w/jobs/JGLOBAL_FORECAST
@@ -51,7 +51,8 @@ if [[ "${DO_OCN}" == "YES" ]]; then
   YMD="${PDY}" HH="${cyc}" declare_from_tmpl -rx COM_MED_RESTART COM_OCEAN_RESTART COM_OCEAN_INPUT \
     COM_OCEAN_HISTORY COM_OCEAN_ANALYSIS
   RUN="${rCDUMP}" YMD="${gPDY}" HH="${gcyc}" declare_from_tmpl -rx \
-    COM_OCEAN_RESTART_PREV:COM_OCEAN_RESTART_TMPL
+    COM_OCEAN_RESTART_PREV:COM_OCEAN_RESTART_TMPL \
+    COM_MED_RESTART_PREV:COM_MED_RESTART_TMPL
 fi

 if [[ "${DO_ICE}" == "YES" ]]; then

@JessicaMeixner-NOAA
Copy link
Contributor Author

@aerorahul okay thank you for sharing the preferred fix. Will you be making a PR with this?

@aerorahul
Copy link
Contributor

@aerorahul okay thank you for sharing the preferred fix. Will you be making a PR with this?

Yes. I can, as soon as I get some time.

JessicaMeixner-NOAA added a commit to JessicaMeixner-NOAA/global-workflow that referenced this issue Apr 25, 2024
WalterKolczynski-NOAA pushed a commit that referenced this issue Apr 27, 2024
This PR turns the C48mx500_3DVarAOWCDA test back on. This required a few
bugfixes in GDAS app which have now been merged.

Resolves #2438
Resolves #2528

co-authors: @guillaumevernieres and @aerorahul who provided the bug
fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issues that are triage
Projects
None yet
2 participants