Closed climbfuji closed 10 months ago
@dustinswales @peverwhee @gold2718 I cleaned this up as discussed, it's now ready for review. I merged feature/capgen in cleanly after the constituents PR was merged and reran all the tests.
@dustinswales @peverwhee @gold2718 After much debugging (or rather staring at the code and weeding through layers and layers of find_variable
, I finally understand what was wrong with my code. I just pushed https://github.com/NCAR/ccpp-framework/pull/512/commits/7367f985e54692d352aa28cb7df9f9fc0c303d21 which makes two important updates:
write_var_debug_checks
. This allows us to enable allocation checks for locally-defined variables, part of this commit.run
phase always run from horizontal_loop_begin to horizontal_loop_end
(and in all other phases from 1
to horizontal_dimension
).I added inline comments that explain the above in commit 7367f985e54692d352aa28cb7df9f9fc0c303d21. All doctstring tests and all capgen tests pass.
Pinging all remaining reviewers. This PR has sufficient approvals and we are planning to merge this PR on Wednesday, January 17 2024.
I am going to pull in feature/capgen today, resolve the conflicts, rerun all the tests and then merge unless someone requests changes today.
@dustinswales Can you please re-review the changes that I made to fix the spelling compatability
--> compatibility
after I pulled in feature/capgen
? Commit https://github.com/NCAR/ccpp-framework/pull/512/commits/70ae2b0568a3353c81cee3b72b721d353ad0c27c. If you could let me know then I will do a squashed merge with a proper commit message. Thanks!
Update 2024/01/18: when pulling in
feature/capgen
, I noticed a spelling mistake that I corrected in commit 70ae2b0568a3353c81cee3b72b721d353ad0c27c:var_compatability
-->var_compatibility
. I reran all the tests after pulling infeature/capgen
and correcting the spelling, and they all passed.This PR adds a
--debug
switch to capgen which enables checking of variables.This feature is necessary for the transition from
ccpp_prebuild.py
tocapgen.py
. The following checks are performed:User interface changes?: Yes capgen now accepts an additional (but optional) argument
--debug
This PR resolves https://github.com/NCAR/ccpp-framework/issues/325. After adding the unit tests (see above), also https://github.com/NCAR/ccpp-framework/issues/433
Testing: test removed: none unit tests: ran all unit tests in
test/unit_tests
system tests:test/{advection_test,capgen_test,var_action_test}/
(note that the latter fail due to the missing unit conversions, but the new variable debug checks work as expected)scripts
on all files modifiedtest/hashtable
manual testing: n/a