Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For detailed information about submitting Pull Requests (PRs) to the CICE-Consortium,
please refer to: https://github.com/CICE-Consortium/About-Us/wiki/Resource-Index#information-for-developers
PR checklist
Reduce and remove arrays not needed from ice_grid
Till Rasmussen, DMI
Bit for Bit
Changes according to these principles
a/ If not used remove
b/ If only used in specific modules move there and allocate when needed.
In ice_grid:
1/ Removed mne, mnw, mse, msw. Not used. Points to remapping
2/ xav, yav, xxav, yyav changed to paremeters and moved to remapping where they are used. First two are 0. Should be removed. The latter two are 1/12. An interface was needed as subroutine limited_gradient required input as array. This could probably be fixed in alternative ways.
3/ Moved cyp, cxp, cym, cxm, dxhy, dyhx. Moved to ice_dyn_shared. Only allocate when 2d B-grid (EAP, EVP, VP).
Moved ratiodxN, ratiodyE, ratiodxNr, ratiodyEr to ice_dyn_evp. Only allocated when C grid
@dabail10 Many grid parameters are set to 1e36 within CESM cpp flag. I cannot really check. any preferences for what to do?