ccpp-framework
ccpp-framework copied to clipboard
Handle dimensions for promoted variables
Description
Handle edge case where variable dimensions weren't getting added to the init phase calling list for allocation of promoted, suite-level variables.
Also includes logic to use horizontal_dimension in allocate statement for run-time only variables (with dimension horizontal_loop_extent)
Changes
- scripts/ccpp_suite.py: Add dimensions of promoted variable to init group calling list; use horizontal_dimension instead of horizontal_loop_extent if necessary
- scripts/suite_objects.py: Use horizontal_dimension instead of horizonal_loop_extent for allocation of promoted, suite-level variables
- test/capgen_test/*: add run-time only variables that need to be promoted and allocated (in run phase of two separate groups and used nowhere else)
User interface changes?: No
Fixes
closes #559
Testing
Test added for runtime-only promoted variables