-
Notifications
You must be signed in to change notification settings - Fork 160
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
a quick fix for Issue:A indexing out of bounds issue shown in the global_4denvar regr… #681
a quick fix for Issue:A indexing out of bounds issue shown in the global_4denvar regr… #681
Conversation
…ession test in setuprad.f90 NOAA-EMC#676
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.
Hi, @TingLei-daprediction , is there a convention that the variables stay on the left side of the numbers in equation/condition? E.g. size(abi2km_bc) .ge. 2 instead of 2 .le. size(abi2km_bc). Other than that I don't have questions about the fix itself.
@XuLu-NOAA when I have those lines, kind of like I first have "if (i > size (abi2km_bc) ) then ", where I replaced i with 2 , 3 and so on. let me know if you prefer the form as "size(abi2km_bc) > 2" and so on. |
As @wx20jjung notes we need understand the reason for the Logical
I do not see anywhere in Since
will never be executed. Hence Jim's question. Is the If we are not ready to remove or rewrite code related to
Since |
@RussTreadon-NOAA . I can't answer the question if ab2km is obsolete or it will be updated/refreshed in the future. That is why I retain them and give the current fix just to avoid indexing errors which would cause GSI abort when GSI is built with debug mode. |
This piece of code related to |
@TingLei-daprediction then how about remove the |
@JingCheng-NOAA I have no preference on this! |
Can we do both? The if condition will ensure the initialization is not used by default. But index check also resolves one potential issue if the abi2km is turned on in the future. Initialized or not, it is still a bug. |
My preference is to entirely remove the abi2km code because it won't be executed given how it is currently implemented in GSI source code is version controlled. Removing abi2km code does not remove it from the repository. A developer interested in the abi2km code can locate the PR at which it was removed via a search of github issues or PRs and, given this, checkout the GSI hash prior to the commit at which the code was removed. |
…var regression test in setuprad.f90 NOAA-EMC#676" This reverts commit 70ed687.
…ession test in setuprad.f90 NOAA-EMC#676, remove abc2km blocks
@XuLu-NOAA and @JingCheng-NOAA So, since @RussTreadon-NOAA has the same opinion as @wx20jjung, one of the developers for this part, that this abc2km could be removed, I have removed abc2km blocks and please review the current version. Thanks. |
@JingCheng-NOAA please review the new changes from Ting. |
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, @TingLei-daprediction , for removing unused code from setuprad.f90
Approve.
I have no more issues with the new changes.
…On Fri, Jan 12, 2024 at 8:43 AM ShunLiu-NOAA ***@***.***> wrote:
@JingCheng-NOAA <https://github.com/JingCheng-NOAA> please review the new
changes from Ting.
—
Reply to this email directly, view it on GitHub
<#681 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAHEWIKCQL5DT6EZC3RFCOTYOE4XPAVCNFSM6AAAAABBWM2X4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGI2DENZVG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@TingLei-daprediction Could you please run regression test on HERA, WCOSS and ORION? |
@ShunLiu-NOAA An update on the regression tests: on hera, all passed, on orion, netcdf_fv3_regional failed for :
Considering this PR's property, it is safe to say this memory increase has nothing to with GSI itself and this regression test could be regarded as "pass" in my opinion. The regression test results on wcoss2 are to be reported when it is available to me again. |
…ession test in setuprad.f90 NOAA-EMC#676, remove abc2km blocks And Issue: AMSR2 Retrieval Predictor Caculation Went Wrong NOAA-EMC#678, added test to abort with error message.
0b71af8
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 adding these comments!
@RussTreadon-NOAA I had removed this change in question from this PR and will document our discussion in the issue 678 and let the decision be made/documented there. Thanks. |
Thank you @TingLei-daprediction |
An update: the regressions tests on WCOSS2 all passed! |
@ShunLiu-NOAA and @TingLei-daprediction With the merger of PR #670 into @TingLei-NOAA , if you like I can attempt to push my updated working copy of |
@RussTreadon-NOAA Thanks for taking care of this conflict. I had sent the invitation to you as the collaborator on my fork and hence, after you accept it, you could push your change to this PR. |
Conflict resolved @ 35b8aaf. @TingLei-NOAA , peer reviewers need to re-approve this PR along with @ShunLiu-NOAA , the handling reviewer. |
@XuLu-NOAA @JingCheng-NOAA your another round of reviewing for the updated PR will be appreciated. |
@TingLei-daprediction Could you please re-run regression test? |
@ShunLiu-NOAA All tests passed the reproducibility tests on hera, orion and wcoss2. |
@TingLei-NOAA Thank you for completing regression test on WCOSS2, HERA and ORION. |
… the global_4denvar regr… (NOAA-EMC#681)" This reverts commit 2915685. for test 2915685
In response to Issue:" A indexing out of bounds issue shown in the global_4denvar regression test in setuprad.f90 #676" (#676) and following both online and off-line discussions, it is decided to retain the abi2km part in setuprad.f90 ( for potential future development/improvement), while a simple index-related checks are added to prevent the indexing error when GSI is built with debug mode.
It is important to note that this indexing error does not impact GSI results (when GSI is built with optimization options) since abi2km is currently hardwire consfigured to be not used.
Fixes #676
DUE DATE for merger of this PR into
develop
is 2/22/2024 (six weeks after PR creation).