Skip to content
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

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

Closed
climbfuji opened this issue Oct 4, 2021 · 2 comments
Labels

Comments

@climbfuji
Copy link
Collaborator

climbfuji commented Oct 4, 2021

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 #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
Copy link
Collaborator

How does this issue relate to #325

@climbfuji
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants