Skip to content

Merge main into feature capgen 2021/11/05#414

Merged
climbfuji merged 15 commits into
NCAR:feature/capgenfrom
climbfuji:merge_main_into_feature_capgen_20211105
Nov 7, 2021
Merged

Merge main into feature capgen 2021/11/05#414
climbfuji merged 15 commits into
NCAR:feature/capgenfrom
climbfuji:merge_main_into_feature_capgen_20211105

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

Description

Merge main into feature capgen 2021/11/05

Updates include:

  • remove support for optional arguments in ccpp_prebuild scripts
  • add debugging features to ccpp_prebuild scripts
  • update the ccpp_prebuild cmake build
  • resolve conflicts from merge, a tiny change for one doctest in metavar.py, update call to parse_metadata_file in prebuild's metadata_parser.py

All changes except commits 0159166 and ee22e68 have been reviewed and approved before they were merged into main.

User interface changes?: No

Testing:

  • test/run_test.sh passes
  • PYTHONPATH=$PWD/scripts:$PWD/scripts/parse_tools pytest passes
  • latest ufs-weather-model code compiles when making several bugfixes for invalid units in fv3atm and ccpp-physics

After this PR is merged, I will create the reverse PR to update main with the refactored feature/capgen code. That merge will bring the bug fixes for invalid units in fv3atm and ccpp-physics into the authoritative repositories.

A surprisingly clean merge.

climbfuji and others added 15 commits July 23, 2021 13:36
…ew --debug capability to add array size comparisons in auto-generated caps. Updates to formatting of auto-generated caps (no code changes)
Rename --debug flag to --verbose, add new debugging capability to detect array size mismatches, pretty-print auto-generated caps
…from_ccpp

Remove optional arguments from CCPP (capgen metadata parser and ccpp_prebuild scripts)
@climbfuji climbfuji requested a review from gold2718 as a code owner November 5, 2021 13:51
Comment thread scripts/metavar.py
>>> Var({'local_name' : 'foo', 'standard_name' : 'hi_mom', 'units' : 'm s-1', 'dimensions' : '()', 'type' : 'real', 'intent' : 'ino'}, ParseSource('vname', 'SCHEME', ParseContext()), _MVAR_DUMMY_RUN_ENV) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
ParseSyntaxError: Invalid intent variable property, 'ino', at <standard input>:1
>>> Var({'local_name' : 'foo', 'standard_name' : 'hi_mom', 'units' : 'm/s', 'dimensions' : '()', 'type' : 'real', 'intent' : 'in', 'optional' : 'false'}, ParseSource('vname', 'SCHEME', ParseContext()), _MVAR_DUMMY_RUN_ENV) #doctest: +IGNORE_EXCEPTION_DETAIL
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this explicitly so that we know for sure that the parser will throw an exception of old metadata with an optional attribute is found.

Copy link
Copy Markdown
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@climbfuji climbfuji merged commit ad510d3 into NCAR:feature/capgen Nov 7, 2021
climbfuji added a commit to climbfuji/ccpp-framework that referenced this pull request Nov 10, 2021
…pgen_20211105

Merge main into feature capgen 2021/11/05
@climbfuji climbfuji deleted the merge_main_into_feature_capgen_20211105 branch June 27, 2022 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants