-
Notifications
You must be signed in to change notification settings - Fork 261
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 two-way ocean-wave coupling feature to the HAFS applications #2584
base: develop
Are you sure you want to change the base?
Add two-way ocean-wave coupling feature to the HAFS applications #2584
Conversation
@binli2337 Don't you know the value which will be sent from non-overlapped regions (ie, the fillvalue). Why is it necessary to check for the difference between the field and the fillvalue ... for example in MOM6 : |
@DeniseWorthen When comparing floating point numbers, it is generally recommended to check if the absolute difference between the two numbers is less than a tiny value. In this specific case, since stkx and fillvalue are constant, it is probably not necessary to check the absolute difference. Thanks for reviewing the code. |
@binli2337 If your argument about 'checking small differences' pertains, then shouldn't you make sure both components are tested?
|
@DeniseWorthen In the related CMEPS PR, the Stokes drift components for the x direction and the y direction are filled with the fill value in the same non-overlapped areas (from line 603 to line 610 in the esmFldsExchange_hafs_mod.F90 file). So in the MOM6 PR, when stkx has the fill value, the stky will always has the same fill value. Checking whether abs(stky(i,j,ib)-fillValue) is less than a small number is not needed. |
@binli2337 I'm confused how you are using waves in MOM6 w/o updating your |
See this code from the MOM cap
How is MOM6 importing and using waves when the use_waves parameter is not present in the |
tests/parm/MOM_input_hafs
Outdated
@@ -972,5 +997,3 @@ USE_NET_FW_ADJUSTMENT_SIGN_BUG = False ! [Boolean] default = True | |||
! === module MOM_restart === | |||
|
|||
! === module MOM_file_parser === | |||
|
|||
USE_HUYNH_STENCIL_BUG = True |
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.
this parameter needs to be here (false is its default), other wise it will break mpi test (answer change with different PE #) on wcoss2. There is a FMA bug in the code but GFDL haven't figured it out yet.
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.
@jiandewang The file "MOM_input_hafs" has been updated. Thanks!
@DeniseWorthen The file "MOM_input_hafs" has been updated for the 2-way ocean wave coupling test. The test name is hafs_regional_storm_following_1nest_atm_ocn_wav_mom6. Thanks! |
@binli2337 Are you using a new or updated WW3 mod_def for this test? If not, I believe you are exporting all 0s from WW3 for the stokes components. See this line You need to have the following line in your inp file for WW3 in order to calculate the stokes for export:
How are you testing this? Have you verified non-zero stokes fields sent to OCN? |
@DeniseWorthen Yes, the model definition file has been updated with the stokes drift components. The updated file is from my input directory on Hera. You can verify the stokes drift fields from the mediator history file. |
@binli2337 Thanks, I found the mod_def (we need to be careful and commit the updated inp file too). But I still don't understand why the changes are necessary in WW3 or MOM6. I ran the mom6 RT w/ only your changes to CMEPS (to add the field exchanges). All the stokes drifts components are already 0.0 in the areas where there is no overlap. |
@DeniseWorthen Thank you for identifying some interpolation issues. The issues have been fixed. |
Commit Queue Requirements:
Description:
The ufs-weather-model will be updated to include two-way ocean-wave coupling capability for HAFS applications.
Commit Message:
Priority:
Git Tracking
UFSWM:
Sub component Pull Requests:
UFSWM Blocking Dependencies:
Changes
Regression Test Changes (Please commit test_changes.list):
Input data Changes:
Library Changes/Upgrades:
Testing Log: