-
Notifications
You must be signed in to change notification settings - Fork 66
Add debug switch to capgen (perform variable allocation checks etc) + fix spelling: var_compatability --> var_compatibility #512
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
Merged
climbfuji
merged 25 commits into
NCAR:feature/capgen
from
climbfuji:feature/capgen_debug_checks
Jan 19, 2024
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
7682ec1
Add capability to parse Fortran pointer variables to fortran_tools/pa…
climbfuji a660e2f
Add --debug option to capgen (framework_env.py)
climbfuji a67b0bc
Add pointer attribute to Var class, add code to convert active attrib…
climbfuji e532774
Add debug checks for variables (scalars, arrays) before and after sch…
climbfuji ddae076
Fix typo in var_props.py
climbfuji 29ee9ae
For advection tests, add --debug flag to capgen and update test reports
climbfuji de0891f
Add active attribute to variable water_vapor_specific_humidity in cap…
climbfuji b1b215d
For var_action tests, add --debug flag to capgen and update test reports
climbfuji adeef17
Clean up based on self-review
climbfuji 7256311
Add scripts/parse_tools/fortran_conditional.py
climbfuji af16935
Cleanup: replace var_dicts with cldicts in write_debug_checks in suit…
climbfuji edb1bd5
Update comment on ddt_type property in metavar.py
climbfuji 13b6363
Add doctests for conditional function of Var class
climbfuji fddde47
Add docstring documentation for add_var_debug_check and write_var_deb…
climbfuji 8834299
Merge branch 'feature/capgen' of https://github.com/ncar/ccpp-framewo…
climbfuji b4f108b
Simplify logic for variable debug checks in suite_objects.py
climbfuji 2e72cc8
Update variable lists for var_action_test
climbfuji 3a4c056
Update scripts/framework_env.py
climbfuji 464f62a
Fix wrong comment about group variables in scripts/suite_objects.py
climbfuji dfa59eb
In scripts/suite_objects.py: rename 'dummy' variables for var_debug_c…
climbfuji 7367f98
Bug fix in scripts/suite_objects.py: also check variable allocations …
climbfuji fc6fec3
Remove stray debugging statement in scripts/suite_objects.py
climbfuji 94b2755
Merge branch 'feature/capgen' of https://github.com/ncar/ccpp-framewo…
climbfuji 70ae2b0
Fix spelling: compatability --> compatibility
climbfuji 63aee18
Add missing instruction in test_prebuild/test_blocked_data/README.md
climbfuji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/usr/bin/env python3 | ||
| # | ||
|
|
||
| """Definitions to convert a conditional statement in the metadata, expressed in standard names, | ||
| into a Fortran conditional (used in an if statement), expressed in local names. | ||
| """ | ||
|
|
||
| import re | ||
|
|
||
| FORTRAN_CONDITIONAL_REGEX_WORDS = [' ', '(', ')', '==', '/=', '<=', '>=', '<', '>', '.eqv.', '.neqv.', | ||
| '.true.', '.false.', '.lt.', '.le.', '.eq.', '.ge.', '.gt.', '.ne.', | ||
| '.not.', '.and.', '.or.', '.xor.'] | ||
| FORTRAN_CONDITIONAL_REGEX = re.compile(r"[\w']+|" + "|".join([word.replace('(','\(').replace(')', '\)') for word in FORTRAN_CONDITIONAL_REGEX_WORDS])) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.