-
Notifications
You must be signed in to change notification settings - Fork 6
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 to enable coupling with WW3 using 3d vortex formulation #32
Changes to enable coupling with WW3 using 3d vortex formulation #32
Conversation
Thx @uturuncoglu. |
@josephzhang8 JFYI, I have just synced UFS coastal with UFS WM. This also brings changes related to WW3. I am testing now by running RTs. Along my testing I also tried to update SCHISM but RTs are started to fail with following error.
At this point we are using |
Yes, you can simply change nws=4. Let me know if you still have errors. Thx |
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.
The code looks fine to me, thanks for adhering to the conventions set in the code base. I am not so happy with the naming of the variables 'Sw_*', but that can be fixed at a later stage and might be a consequence of the coupling. Please go ahead and merge.
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.
Thanks for making the naming changes, as well. Please go ahead and merge. We might have to think about auto-generating documentation while we expand the field dictionary....
Thx @platipodium. I've merged and closed the PR. |
@josephzhang8 Again. this was a draft PR and I supposed to make it ready to review and then merge it after testing. I think merging PRs without testing is not good practice. It is just my feeling. @platipodium We could change the field naming since field dictionary allow us to define aliases. |
I agree with Ufuk, first test it!. It was by accident that I converted from draft PR to PR ... always discovering new pitfalls when on GitHub |
@josephzhang8 @platipodium Okay. I have already found an issue with this PR. If you try to compile ESMF interface without building model with USE_WW3 option. The model is failing. I think we need to add this CPP flag also to ESMF interface. Anyway, the fix will come soon. |
@josephzhang8 @platipodium Okay. there are two solution for this issue.
Anyway, I just wonder about your preference. If you want to go with (2) then I think also introducing USE_WW3 to |
Option 1 is fine. I added that CPP to make the code clear but it's not needed as you mentioned. Thx |
@josephzhang8 Okay. Let me try. I'll update you about it. |
Sorry, I mixed this with another PR discussion. |
Hi @uturuncoglu, For the mediator, I see https://github.com/oceanmodeling/CMEPS/blob/ed32f3ed12efc5fe224dc5305dfa27beec34ada6/mediator/esmFldsExchange_ufs_mod.F90 is updated, and https://github.com/oceanmodeling/CMEPS/blob/ed32f3ed12efc5fe224dc5305dfa27beec34ada6/mediator/esmFldsExchange_coastal_mod.F90 is not. Are we using esmFldsExchange_ufs_mod.F90 or esmFldsExchange_coastal_mod.F90 for the coupling? Thank you! |
@yunfangsun I'll check it and let you know. I think I forgot to merge the CMEPS branch. Thanks for reminder. |
Hi @uturuncoglu , My Best |
@yunfangsun Okay. It is done. Please that with the recent version of the UFS coastal. BTW, do not forget to add new PIO options for the WW3 (an example is in here - https://github.com/oceanmodeling/ufs-weather-model/blob/711f55369d880c32548465a2443b4f31bc468df8/tests/parm/ufs.configure.coastal_datm_ocn_wav.IN#L57). You might also need to create mod.def from scratch using ww3_grid tool. I did it for the RTs. Let me know if you have any issues. |
Hi @uturuncoglu Thank you! I will try it |
Hi @uturuncoglu , My DOCN is located at /work2/noaa/nosofs/yunfangs/ufs-3d/ufs-weather-model_cdep_01052025/CDEPS-interface/CDEPS/docn . Could you please take a look at it? Thank you! |
@yunfangsun did you modified |
@yunfangsun Okay. I found it. I have just pushed the mods to CDEPS and updated UFS Coastal. Could you try. I did not push the change related with the So_omask since it also breaks other tests. If you could have issue with it we could look at it. |
Hi @uturuncoglu , Thank you! I will try it |
The WW3 changes are merged with UFS WM level PR: ufs-community/ufs-weather-model#2396. These are the remaining changes in the SCHISM side to enable coupling with 3d vortex formulation. This is still draft and before merging it, we need to following,
If everything goes as expected, I could make this PR ready for review. JFYI, @janahaddad