NCAR / ccpp-framework

Common Community Physics Package (CCPP)
http://www.dtcenter.org/community-code/common-community-physics-package-ccpp/
Other
26 stars 64 forks source link

Framework should provide a debugging feature to compare array dimensions in capgen.py #406

Closed climbfuji closed 2 years ago

climbfuji commented 2 years ago

Description

The framework should be able to compare array dimensions in the auto-generated caps between the actual size of the arrays and the size inferred from the dimensions in the metadata.

Solution

These comparisons will be slowing down the code and therefore should only be activated when an appropriate --debug flag (or similar) is provided on the command line. Arrays that are not "active" (i.e. whose active attribute evaluates to .false.) must be skipped.

This solution will be implemented first in ccpp_prebuild.py (see https://github.com/NCAR/ccpp-framework/issues/405) and later in capgen.py. Note that it can but doesn't have to be in place at the time of transitioning from ccpp_prebuild.py to capgen.py. It will require the var_action class to be implemented in capgen.py.

gold2718 commented 2 years ago

How does this issue relate to #325

climbfuji commented 2 years ago

Actually, this is a duplicate. Will add the corresponding labels for #325 and close this one.