-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Update w3srcemd.F90 to correct bug related to TR1 #1384
base: develop
Are you sure you want to change the base?
Conversation
To calculate the increment of spectrum, we should use the source term VSTR rather than VDTR
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.
Thank you @Biao-Zhao for your work on this fix. Everything looks good. I approve the changes.
********************* non-identical cases ****************************
mww3_test_03/./work_PR2_UNO_MPI_e (1 files differ)
mww3_test_03/./work_PR2_UQ_MPI_d2 (13 files differ)
mww3_test_03/./work_PR3_UQ_MPI_e_c (1 files differ)
mww3_test_03/./work_PR2_UNO_MPI_d2 (10 files differ)
mww3_test_03/./work_PR1_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2_c (15 files differ)
mww3_test_03/./work_PR3_UQ_MPI_e (1 files differ)
mww3_test_03/./work_PR2_UQ_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UNO_MPI_e_c (1 files differ)
mww3_test_03/./work_PR1_MPI_d2 (8 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2_c (17 files differ)
mww3_test_03/./work_PR3_UNO_MPI_d2 (16 files differ)
mww3_test_03/./work_PR3_UNO_MPI_e (1 files differ)
mww3_test_03/./work_PR3_UQ_MPI_d2 (16 files differ)
mww3_test_09/./work_MPI_ASCII (0 files differ)
ww3_tp1.9/./work_PR3_UQ_MPI (7 files differ)
ww3_tp1.9/./work_PR3_UQ (7 files differ)
ww3_tp2.10/./work_MPI_OMPH (6 files differ)
ww3_tp2.16/./work_MPI_OMPH (4 files differ)
ww3_tp2.6/./work_ST4_ASCII (0 files differ)
ww3_ufs1.3/./work_a (3 files differ)
Re-requesting a review from @sbanihash as I noticed that two tests:
that have unexpected changes. |
Thank you Jessica for pointing that out. I will take a look. ww3_tp1.9 is the only regtest that uses TR1 switch and change is expected based on the nature of this PR. I will do further checks to make sure they are expected. @Biao-Zhao have you done any testing with and without your changes to report any expected differences we will see? |
Hi, @sbanihash, I didn't do any testing regarding this. I encountered this issue while going through w3srcemd.F90. Based on the treatment of other source terms, VSTR is expected to compute the contribution of TR1 to the increment of SPEC. Therefore, I think it's necessary to report this bug. If I got this wrong, feel free to point it out. |
Thank you @Biao-Zhao for you response. I agree with the change and while I was reviewing your PR and looking at other source terms as you pointed out, this change was needed in my opinion as well. But as I had also mentioned to @JessicaMeixner-NOAA this PR will change answers for tests that use TR1 switch in the sense that it is intended to correct a mistake in calculating the increment spectrum. |
If changes to tests with TR1 are expected, let's please update the PR template to separate the changes expected with this PR versus the regression tests that normally have b4b issues. For example, the question to Please indicate the expected changes in the regression test output, (Note the list of known non-identical tests.) should be: ww3_tp1.9/./work_PR3_UQ_MPI (7 files differ) |
To calculate the increment of spectrum, we should use the source term VSTR rather than VDTR
Pull Request Summary
Description
Issue(s) addressed
Commit Message
Check list
Testing