Skip to content
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

ccpp_prebuild.py mkstatic.py need for ccpp_loop_counter in metadata_request #394

Closed
climbfuji opened this issue Aug 12, 2021 Discussed in #389 · 1 comment · Fixed by #436
Closed

ccpp_prebuild.py mkstatic.py need for ccpp_loop_counter in metadata_request #394

climbfuji opened this issue Aug 12, 2021 Discussed in #389 · 1 comment · Fixed by #436

Comments

@climbfuji
Copy link
Collaborator

Discussed in #389

Originally posted by grantfirl August 10, 2021
During the IAP CCPP work, I came across an error that I haven't seen before. Specifically, I'm trying to run ccpp_prebuild.py on the new host and physics metadata. To do so, I have a simple SDF with one scheme for which there is host metadata for all variables.

When running ccpp_prebuild.py, I'm getting the following error:

Traceback (most recent call last):
File "./ccpp/framework/scripts/ccpp_prebuild.py", line 849, in
main()
File "./ccpp/framework/scripts/ccpp_prebuild.py", line 826, in main
arguments_request, config['caps_dir'])
File "./ccpp/framework/scripts/ccpp_prebuild.py", line 568, in generate_suite_and_group_caps
suite.write(metadata_request, metadata_define, arguments)
File "/Volumes/d1/grantf/code/IAP_cas-esm2/models/atm/iap/ccpp/framework/scripts/mkstatic.py", line 676, in write
group.write(metadata_request, metadata_define, arguments)
File "/Volumes/d1/grantf/code/IAP_cas-esm2/models/atm/iap/ccpp/framework/scripts/mkstatic.py", line 901, in write
ccpp_loop_counter_target_name = metadata_request[CCPP_LOOP_COUNTER][0].target
KeyError: 'ccpp_loop_counter'

However, from the console output, ccpp_loop_counter is being parsed on the host side from ccpp_types.F90.

It looks like this error crops up when ccpp_loop_counter is not being requested by any of the physics in a suite? Is this necessary or is there a workaround?

@climbfuji
Copy link
Collaborator Author

#436 addresses this issue.

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 a pull request may close this issue.

1 participant