-
Notifications
You must be signed in to change notification settings - Fork 64
Detect invalid horizontal dimensions (loop variables) in metadata for host and schemes #659
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
Detect invalid horizontal dimensions (loop variables) in metadata for host and schemes #659
Conversation
…zontal dimensions are correct for the current CCPP phase
…) for host and schemes
…st/temp_set.meta, ddthost_test/make_ddt.meta
…_var_property_name.meta, sample_files/test_multi_ccpp_arg_tables.meta
54d46ef
to
436531c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@climbfuji These changes look good to me. Just a small comment on an error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me - thanks for adding that test also!
With approvals from NOAA and CGD (and NRL ...) I'll go ahead and merge this. |
Detect invalid horizontal dimensions (loop variables) in metadata for host and schemes
Detect invalid horizontal dimensions (loop variables) in metadata for host and schemes. For schemes,
horizontal_dimension
is invalid in therun
phase, all other options (horizontal_loop_extent
,horizontal_loop_begin
,horizontal_loop_end
) are only valid in therun
phase. For host models, onlyhorizontal_dimension
is valid.Tests are added for both scheme and host metadata, and existing tests are fixed, namely bad horizontal dimensions in:
test/unit_tests/sample_files/test_bad_var_property_name.meta
test/unit_tests/sample_files/test_multi_ccpp_arg_tables.meta
test/capgen_test/make_ddt.meta
test/capgen_test/temp_set.meta
test/ddthost_test/make_ddt.meta
test_prebuild/test_tracked_data/scheme3.meta
test_prebuild/test_unit_conv/data.*
Further: I commented out test for blocked data structures in
test_prebuild/run_all_tests.sh
; this test can no longer be run, since blocked data structures required the host model to define the horizontal dimension for blocked data ashorizontal_loop_extent
. This test and all code related to supporting blocked data structures inccpp_prebuild.py
will be removed in a follow-up PR (out of scope of this PR).User interface changes?: No
Fixes #521
Testing: all tests pass
tests added: test that invalid horizontal dimensions are detected correctly for host and scheme metadata
tests removed: commented out blocked data tests for
ccpp_prebuild
unit tests:
system tests:
manual testing: