ccpp_prebuild.py mkstatic.py need for ccpp_loop_counter in metadata_request #389
Replies: 2 comments 1 reply
-
Thanks for reporting the issue, Grant. I encountered similar issues in the past, and I may already have a fix for this one somewhere on my laptop ... just need to find it. Is it possible to get a copy of your code so that I can replicate the error? That would be the fastest way to fix it. |
Beta Was this translation helpful? Give feedback.
-
Sure, it's fine to create an issue from this. I'm hesitant to share the IAP code right now since I'm going through and addressing A BUNCH of errors at the moment. To get past this error temporarily, I'm just going to add a dummy scheme that requests ccpp_loop_counter. Once I've ironed out all of the other errors, it should still be able to reproduce this particular error by removing the dummy scheme. |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions