-
Notifications
You must be signed in to change notification settings - Fork 555
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
Fb smc datadim #753
Fb smc datadim #753
Conversation
was only used in initialisation of the model grid.
Hi @UKMO-lsampson |
Hi @ukmo-ccbunney, I am still in the process of running the regtests. I had to rerun the develop and comparison regtests as the NOAA and UKMO-wave develop updated. I will attach them ASAP, and change the PR to be ready for review once available. |
@ukmo-ccbunney I have run the regtests and compared them with the output from the head of develop. This PR has been updated according to the results, but I will need to continue to investigate the reasons for some differences. |
@UKMO-lsampson these look like pretty familiar//expected output. See https://github.com/NOAA-EMC/WW3/wiki/How-to-use-matrix.comp-to-compare-regtests-with-develop#4-look-at-results and then an unresolved issue for the unstructured grid mod_defs here: #700 |
@JessicaMeixner-NOAA thank you for looking at this PR. I think you're correct, I have rerun the regtests that contain mod_def and core differences, with the same source code and this is still reporting differences in the binary files. |
@ukmo-jianguo-li Would you be able to do a quick review of this change please? Thanks. |
I have viewed Lewis' changes and they look fine to me. Although some more columns in the face array could be removed from memory as I originally suggested, it could be left for later update. As this is Lewis' first pull request for the WW3 model, I think it is better to keep it as simple as possible and get it merged as quick as possible. |
Have forgot how to submit the review approval. The system seems not taking my comment as approval. |
Thanks @ukmo-jianguo-li - we could not add you explicitly as a reviewer, so your approval in the comments is fine. |
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.
I've run the regression tests and get the following differences (ignoring the known differences in mww3_test_03
):
mww3_test_09/./work_MPI (3 files differ)
ww3_tp2.10/./work_MPI (1 files differ)
ww3_tp2.10/./work_MPI_OMPH (1 files differ)
ww3_tp2.14/./work_OASACM6 (1 files differ)
ww3_tp2.16/./work_MPI (1 files differ)
ww3_tp2.16/./work_MPI_OMPH (1 files differ)
In each case the difference is in the mod_def.*
files, as expected (the IJKCel
array is now a different size).
I'm happy to approve this PR.
I will run the regtests here one more time just as an extra sanity check. It might take a day as our queues are a little slow, but then we should have this merged tomorrow or Friday. |
I just did it again, he was invited but never accepted the invitation so it was expired. |
Here's my full list of cases that are different: mww3_test_03/./work_PR2_UNO_MPI_d2 (12 files differ) These are known-issue files: mww3_test_03/./work_PR2_UNO_MPI_d2 (12 files differ) These are known to change from this PR: |
Pull Request Summary
Implement the removal of some redundant indices that are currently used in the cell (IJKCel) and face arrays (IJKUFc, IJKVFc) of the SMC propagation module.
Description
The current array accesses that are used for the SMC propagation are assigning some components that are never called. By limiting the index, we can reduce the memory usage while maintaining the ability to use the current input file and input arrays.
This does not fix any bug as the program still processes accordingly, but rather focuses on improving the memory usage for the SMC grid, and hence is referred to as a feature branch.
The regression tests should produce a difference when the mod_def.ww3 is produced using a SMC grid. This is because we have changed the declaration of the IJKCel array which is written to and read from mod_def.ww3.
Reviewers (to be requested):
Issue(s) addressed
Commit Message
Implement the removal of some redundant indices that are currently used in the cell (IJKCel) and face arrays (IJKUFc, IJKVFc) of the SMC propagation module.
Check list
Testing
Regtest shows known differences, and changes due to mod_def.ww3: