-
Notifications
You must be signed in to change notification settings - Fork 249
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
Fix WW3 NUOPC cap to allow using radiation stress components #2367
Fix WW3 NUOPC cap to allow using radiation stress components #2367
Conversation
@JessicaMeixner-NOAA I run full RT suite on Hercules and we have two failed test. Here are the details, hafs_regional_atm_wav is failing
** atmwav_control_noaero_p8:**
I am not sure since those files are not netcdf but maybe this is related with having extra fields in the files. Is there any way to check time. Maybe I could run a restart test if there is to see it is changing answer or not. |
@JessicaMeixner-NOAA Maybe it would be nice to run this two test with head of develop with updated WW3 ( |
I'm not sure I understand this @uturuncoglu I'm not sure what you mean by merging fix? The changes do look odd to me. I don't know why these two tests would change but not others. |
@JessicaMeixner-NOAA Okay. Sorry. I have just checked and UFS WM is using head of |
@JessicaMeixner-NOAA I also checked |
@uturuncoglu I would not expect these changes to change anything for the restarts, so this is really odd to me. Unfortunately the restart files themselves are binary and difficult to track down what exactly is causing issues. We know about some issues in the restart file for unstructured grids (which is why they are not included as a baseline in those tests, a fix for that should be coming soon), but both cases you have failing are structured, and we do not know of any issues there. |
@uturuncoglu We don't compare the ww3 restarts for tests like the cpld_control because they do show as different for some reason. The fact that the restart test passes for the various global coupled tests argues for the difference to be in something that doesn't impact the actual data values. The only thing I can see that your PR does is change the field names---which are aliased anyway. Can you try adding the fields
to check whether these two tests would fail? Your coastal fieldsExchange would still work, but for consistency we'd prefer state variables to be named like Neither of the two tests you mention failing have restart tests. I think you could build one for the atmwav, but I don't think regional MOM6 restarts B4B on the MOM6 side. |
@DeniseWorthen Thanks. This PR also adds missing fields to state as follows https://github.com/oceanmodeling/WW3/blob/e8b3ef615eb332198846cd7848d093672504cf30/model/src/wav_import_export.F90#L148. I could try to use original names and see what happens. I'll update you about it. |
@uturuncoglu You're right of course...sorry for not looking more closely. But your change is B4B with the tests which have restart tests though, right? Meaning both control and restart tests pass. |
@DeniseWorthen Yes. That is right. Restart tests passes without any issue. It is just a simple change. I am not sure it affects restart files of those two tests. Anyway, I am trying to your suggestion at this point to see what happens. |
@DeniseWorthen I confirmed that I have same issue even if I use old variables names. |
@uturuncoglu OK. I think it's going to be difficult to track down what exactly is changing. I think the fact that a) all tests that actually test restart are B4B and b) all files except the WW3 restart file are B4B means it isn't really changing answers, it's just changing some bit in the restart file. |
@DeniseWorthen If i remove following part of the code, the test passes without any issue. https://github.com/oceanmodeling/WW3/blob/e8b3ef615eb332198846cd7848d093672504cf30/model/src/wav_import_export.F90#L148. I am not sure how adding advertising new fields are changing the restart file at this point. Since, those are not connected in the ocean side, it must be fine. It is very puzzling for me. @mvertens do you have any idea? This is new mesh cap that is also used by NCAR CESM and you might have some suggestion. |
@uturuncoglu Removing just |
@DeniseWorthen Let me check. |
@DeniseWorthen yes, if I comment out |
@uturuncoglu I don't have any immediate insight. We've never had these variables turned on for the global applications. The thing I might try next is to see if a debug case for |
@DeniseWorthen Okay. Let me try that. |
@uturuncoglu Just a data point----I checked that if you ask WW3 to write out the stress components, the fields in the wave history files are identical to what shows up in the coupler history files, so there doesn't seem to be any issue w/ how the cap is calculating these fields (the SR was lifted from the wmesmf code). Note there is a typo that needs fixing
|
@DeniseWorthen Thanks. I see the issue. Do you want me to add it to this PR? I still need to check the debug test. |
@uturuncoglu I think it makes sense to add the fix to your PR, since it is related to using the rad stresses for your application. Thanks. |
@DeniseWorthen I tested code with atmwav_control_noaero_p8_debug test that I introduced based on your suggestion. It looks it is fine and passing without any issue. |
@uturuncoglu Your PR in debug mode can reproduce a debug baseline created from the current ufs-weather-model branch. Is that right? |
@DeniseWorthen Yes. I created test and its baseline and run again to check. It was passing. Even with your recent changes related with writing SXX and SYY, the same two tests are still failing. Do you want me to double check? |
@uturuncoglu No need to repeat, I just want to be sure I understand your test. You say the same two tests are failing. So the current dev/u-w-m branch passes against it's own baseline in debug mode. But the PR branch in debug mode still fails comparison against that baseline. I'm at a loss right now as to why adding these fields might change the restart file. |
@DeniseWorthen I used my PR branch for all the tests but I commented the section that adds new variables and the tests are passing with it but if I add new variables then it fails. It is strange but only first variable (Sw_wavsuu) is causing issue. If I remember correctly I included Sw_wavsvv and Sw_wavsuv only (without adding Sw_wavsuu) and baseline was passing. So, it is definitely odd. |
@uturuncoglu I built a restart test for the atmwav test and tested it w/ your additional fields added to the field list. The restart reproduces the control case, and the ww3 restart file is also B4B at hour=12. |
@uturuncoglu Please test this fix. In my test, the wave restarts for the I have a second fix which appears to mostly resolve the issues w/ the cpld tests, where ww3 restarts themselves were not B4B so they were never included in the comparison list.
|
@DeniseWorthen Okay. Let me test in my side too an add this fix to the PR. Thanks for your help. |
@DeniseWorthen Still same for me.
Let me push the change an you could double check it is fine and working in your side. |
@DeniseWorthen Here is the commit for the fix: NOAA-EMC/WW3@5debd42 |
@DeniseWorthen Do you think if baseline has issue? |
@uturuncoglu Did you create a new baseline (without the added fields) and compare against that? So, new baseline w/ trho(2)=0 with top of dev/ufs-weather-model and then run against that w/ your added fields. |
@DeniseWorthen No, let me create a one and check against it. |
OK. I was only testing the |
@DeniseWorthen @JessicaMeixner-NOAA JFYI, |
@JessicaMeixner-NOAA @DeniseWorthen I am closing this since we have new PR (#2396) now. |
Commit Queue Requirements:
Description:
The current version of cap used by WW3 model does not allow coupling through the radiation stress components due to incomplete implementation. This PR fixes the issue related to radiation stress components in WW3 NUOPC cap (new mesh cap). Note that there is no any coupled RT that uses radiation stress components to couple WW3 with ocean component under UFS Weather Model. The changes are tested with DATM+SCHSIM+WW3 coupling under fork of ufo-weather-model used by UFS Coastal Application.
Commit Message:
Priority:
Git Tracking
UFSWM:
Sub component Pull Requests:
UFSWM Blocking Dependencies:
Changes
Regression Test Changes (Please commit test_changes.list):
Since ww3 restart file is modified, the PR will affect the baseline for following tests:
hafs_regional_atm_wav
atmwav_control_noaero_p8
Input data Changes:
Library Changes/Upgrades:
Testing Log: