NCAR/ccpp-framework

Add check to disallow usage of horizontal_dimension in the run phase

Opened this issue · 0 comments

Description

There is currently no check that disallows usage of horizontal_dimension in the run phase of a physics scheme (where horizontal_loop_extent must be used).

Steps to Reproduce

  1. Check out the head of feature/capgen
  2. Attempt to run with a physics scheme (or modify an existing test scheme) that uses horizontal_dimension in the run phase in the metadata
  3. See that it compiles without error.

Additional Context

The framework will currently error if you try to use horizontal_loop_extent outside of the run phase, so it should be updated to error when you try to misuse horizontal_dimension as well.