-
Notifications
You must be signed in to change notification settings - Fork 365
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
Fix tmp_array size to avoid array mismatch found by GNU #1521
Conversation
I allocated the tmp_array to be too large and GNU compiler stopped with an array mismatch. Change this to be state%ncol in size, not pcol
Fixes tmp_array size to avoid array mismatch found by GNU This is a fix to a PR #1501 (github issue #1263). I allocated the tmp_array to be too large and GNU compiler stopped with an array mismatch. Change this to be state%ncol in size, not pcol Fixes #1263 [BFB] * ndk/cam/fix-add-tmp-arrays-use-ncol: This is a fix to a PR #1501 (github issue #1263). I allocated the tmp_array to be too large and GNU compiler stopped with an array mismatch. Change this to be state%ncol in size, not pcol Add a more reasonable pe layout for the a%ne30np4 grid for cori-knl. May not be optimal, but allows for testing.
pushed to next |
Note, Intel compilers don't catch this. I'm googling and it may be that the language is OK with this and it's a benefit of GNU to note it, but Intel chooses to let it go. We already have |
Yes, some compilers allow these kind of assignments. Another point to note is that only tests with |
Fixes tmp_array size to avoid array mismatch found by GNU This is a fix to a PR #1501 (github issue #1263). I allocated the tmp_array to be too large and GNU compiler stopped with an array mismatch. Change this to be state%ncol in size, not pcol Fixes #1263 [BFB] * ndk/cam/fix-add-tmp-arrays-use-ncol: This is a fix to a PR #1501 (github issue #1263). I allocated the tmp_array to be too large and GNU compiler stopped with an array mismatch. Change this to be state%ncol in size, not pcol Add a more reasonable pe layout for the a%ne30np4 grid for cori-knl. May not be optimal, but allows for testing.
define acceptable attributes so that all are not required to be present Define the list of expected attributes to the mpirun command so that the all do not need to be passed in. Test suite: scripts_regression_tests.py Test baseline: Test namelist changes: Test status: bit for bit Fixes #1345 User interface changes?: Code review:
In the fix for another issue, the tmp_array was allocated to be to large and the GNU compiler stopped with an array mismatch. Reduce the size of the allocated tmp_array by changing the size to be state%ncol, not pcol
This is a redo of PR #1501
Fixes #1263