-
Notifications
You must be signed in to change notification settings - Fork 383
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
For several outfld(), use a temporary array to avoid computing on values not needed #1501
Conversation
…all, instead create a temporary array, and only do the operation on ncol values. For example: !call outfld( 'RTP2_CLUBB', rtp2*1000._r8, pcols, lchnk ) tmp_array = rtp2(:ncol,:)*1000._r8 call outfld( 'RTP2_CLUBB', tmp_array, ncol, lchnk )
call outfld( 'WPTHVP_CLUBB', wpthvp*cpair, pcols, lchnk ) | ||
call outfld( 'ZT_CLUBB', 1._r8*zt_out, pcols, lchnk ) | ||
call outfld( 'ZM_CLUBB', 1._r8*zi_out, pcols, lchnk ) | ||
tmp_array = wprcp(:ncol,:)*cpair |
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.
Should it be tmp_array = wpthvp(:ncol,:)*cpair
?
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.
Yes, it should be. Really sorry about that.
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.
no worries, most likely a copy-paste error.
Should be tmp_array = wpthvp(:ncol,:)*cpair
For several outfld() calls that do array operations in the function call, instead create a temporary array, and only do the operation on ncol values. For example: !call outfld( 'RTP2_CLUBB', rtp2*1000._r8, pcols, lchnk ) tmp_array = rtp2(:ncol,:)*1000._r8 call outfld( 'RTP2_CLUBB', tmp_array, ncol, lchnk ) We hit issues using a couple of different PE layouts in these outfld calls. Additionally, for cori-knl, the SMS_D_Ld1.ne16_ne16.FC5ATMMOD test was failing, but now passes. Fixes #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 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.
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.
Upstream merge to resolve conflicts. * master: (93 commits) Adds the --force-move option and implies --copy-only when --last-date is specified without --force-move added spunup A_WCYCL options (1850S and 2000S) for v0atm Updates land initial conditions for ne120_oRRS18v3 Fix jenkins_generic_job when user selects specific machines. Fix small problems with MPAS components from debug tests Adds a warning when using the --last-date option and to its help Implement the copy_only option for short term archiving. This copies files rather than moving them Implemented most of the machinery for testing with "incomplete" log files Fix code format issue - replace unused variable with _ Update template.st_archive Adds options to the st_archive to specify the last date (--last-date) to archive, and whether to disable archiving incomplete log files (--no-incomplete-logs) Turn off salinity restoring by default until it passes exact restart 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 Fix a floating invalid that we found with certain PE's (and with intel v17.02) bug fix Revert mpas-o commit with new threaded vector reconstruction consistency changes Changing jobmin to 1 for batch q on blues Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Point at corrected salinity restoring files for oEC60to30v3 and oRRS18to6v3 Make sure clean clm cleans up obj dir ...
Fix for SOM bug introduced in PR #1451 This PR fixes the SOM bug introduced in PR#1451 Test suite: scripts_regression_tests and verified that the following two tests passed functionality and were bfb with d4dfbf1 (the CIME PR before the aquaplanet SOM changes were introduced) ERS_D_Ld5.f19_g16.ETEST.yellowstone_intel.cice-default ERS_Ld5.f19_g16.ETEST.yellowstone_intel.cice-default verified that the following two tests passed functionality (the QSC4 compset is a new CAM compset that has aquaplanet SOM functionality) ERS_D_Ld5.f09_f09.QSC4.yellowstone_intel ERS_Ld5.f09_f09.QSC4.yellowstone_intel Test baseline: d4dbf1 Test namelist changes: None Test status: bit for bit Fixes #1497 User interface changes?: None Code review:jedwards
Upstream merge to resolve conflicts. * master: (93 commits) Adds the --force-move option and implies --copy-only when --last-date is specified without --force-move added spunup A_WCYCL options (1850S and 2000S) for v0atm Updates land initial conditions for ne120_oRRS18v3 Fix jenkins_generic_job when user selects specific machines. Fix small problems with MPAS components from debug tests Adds a warning when using the --last-date option and to its help Implement the copy_only option for short term archiving. This copies files rather than moving them Implemented most of the machinery for testing with "incomplete" log files Fix code format issue - replace unused variable with _ Update template.st_archive Adds options to the st_archive to specify the last date (--last-date) to archive, and whether to disable archiving incomplete log files (--no-incomplete-logs) Turn off salinity restoring by default until it passes exact restart 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 Fix a floating invalid that we found with certain PE's (and with intel v17.02) bug fix Revert mpas-o commit with new threaded vector reconstruction consistency changes Changing jobmin to 1 for batch q on blues Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Point at corrected salinity restoring files for oEC60to30v3 and oRRS18to6v3 Make sure clean clm cleans up obj dir ...
Upstream merge to resolve conflicts. * master: (93 commits) Adds the --force-move option and implies --copy-only when --last-date is specified without --force-move added spunup A_WCYCL options (1850S and 2000S) for v0atm Updates land initial conditions for ne120_oRRS18v3 Fix jenkins_generic_job when user selects specific machines. Fix small problems with MPAS components from debug tests Adds a warning when using the --last-date option and to its help Implement the copy_only option for short term archiving. This copies files rather than moving them Implemented most of the machinery for testing with "incomplete" log files Fix code format issue - replace unused variable with _ Update template.st_archive Adds options to the st_archive to specify the last date (--last-date) to archive, and whether to disable archiving incomplete log files (--no-incomplete-logs) Turn off salinity restoring by default until it passes exact restart 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 Fix a floating invalid that we found with certain PE's (and with intel v17.02) bug fix Revert mpas-o commit with new threaded vector reconstruction consistency changes Changing jobmin to 1 for batch q on blues Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Point at corrected salinity restoring files for oEC60to30v3 and oRRS18to6v3 Make sure clean clm cleans up obj dir ...
Upstream merge to resolve conflicts. * master: (93 commits) Adds the --force-move option and implies --copy-only when --last-date is specified without --force-move added spunup A_WCYCL options (1850S and 2000S) for v0atm Updates land initial conditions for ne120_oRRS18v3 Fix jenkins_generic_job when user selects specific machines. Fix small problems with MPAS components from debug tests Adds a warning when using the --last-date option and to its help Implement the copy_only option for short term archiving. This copies files rather than moving them Implemented most of the machinery for testing with "incomplete" log files Fix code format issue - replace unused variable with _ Update template.st_archive Adds options to the st_archive to specify the last date (--last-date) to archive, and whether to disable archiving incomplete log files (--no-incomplete-logs) Turn off salinity restoring by default until it passes exact restart 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 Fix a floating invalid that we found with certain PE's (and with intel v17.02) bug fix Revert mpas-o commit with new threaded vector reconstruction consistency changes Changing jobmin to 1 for batch q on blues Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Point at corrected salinity restoring files for oEC60to30v3 and oRRS18to6v3 Make sure clean clm cleans up obj dir ...
Upstream merge to resolve conflicts. * master: (93 commits) Adds the --force-move option and implies --copy-only when --last-date is specified without --force-move added spunup A_WCYCL options (1850S and 2000S) for v0atm Updates land initial conditions for ne120_oRRS18v3 Fix jenkins_generic_job when user selects specific machines. Fix small problems with MPAS components from debug tests Adds a warning when using the --last-date option and to its help Implement the copy_only option for short term archiving. This copies files rather than moving them Implemented most of the machinery for testing with "incomplete" log files Fix code format issue - replace unused variable with _ Update template.st_archive Adds options to the st_archive to specify the last date (--last-date) to archive, and whether to disable archiving incomplete log files (--no-incomplete-logs) Turn off salinity restoring by default until it passes exact restart 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 Fix a floating invalid that we found with certain PE's (and with intel v17.02) bug fix Revert mpas-o commit with new threaded vector reconstruction consistency changes Changing jobmin to 1 for batch q on blues Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Point at corrected salinity restoring files for oEC60to30v3 and oRRS18to6v3 Make sure clean clm cleans up obj dir ...
Upstream merge to resolve conflicts. * master: (93 commits) Adds the --force-move option and implies --copy-only when --last-date is specified without --force-move added spunup A_WCYCL options (1850S and 2000S) for v0atm Updates land initial conditions for ne120_oRRS18v3 Fix jenkins_generic_job when user selects specific machines. Fix small problems with MPAS components from debug tests Adds a warning when using the --last-date option and to its help Implement the copy_only option for short term archiving. This copies files rather than moving them Implemented most of the machinery for testing with "incomplete" log files Fix code format issue - replace unused variable with _ Update template.st_archive Adds options to the st_archive to specify the last date (--last-date) to archive, and whether to disable archiving incomplete log files (--no-incomplete-logs) Turn off salinity restoring by default until it passes exact restart 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 Fix a floating invalid that we found with certain PE's (and with intel v17.02) bug fix Revert mpas-o commit with new threaded vector reconstruction consistency changes Changing jobmin to 1 for batch q on blues Modifies SMS_D_Ln5_P8x4 to SMS_Ln5 to avoid cetus and melvin issues Point at corrected salinity restoring files for oEC60to30v3 and oRRS18to6v3 Make sure clean clm cleans up obj dir ...
For several outfld() calls that do array operations in the function call,
instead create a temporary array, and only do the operation on ncol values.
For example:
!call outfld( 'RTP2_CLUBB', rtp2*1000._r8, pcols, lchnk )
tmp_array = rtp2(:ncol,:)*1000._r8
call outfld( 'RTP2_CLUBB', tmp_array, ncol, lchnk )
We hit issues using a couple of different PE layouts in these outfld calls. Additionally, for cori-knl, the
SMS_D_Ld1.ne16_ne16.FC5ATMMOD
test was failing, but now passes.Fixes #1263