-
Notifications
You must be signed in to change notification settings - Fork 66
Add capability to do unit conversations to capgen #504
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 45 commits into
NCAR:feature/capgen
from
dustinswales:feature_capgen_unit_conversions
Jan 16, 2024
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
c2b1f9b
Initial commit. Work in progress
a3353c7
Working.
bb86f8b
Housekeeping
92d00d8
Working with compatability object
adb0c38
Merge branch 'feature_capgen_unit_conversions_temp' into feature_capg…
eecc620
Revert change
592e15f
Omission from previous commit
a4b1c99
Omission from previous commit. again...
62a9d12
Omission from previous commit. again...
b603972
Merge branch 'feature/capgen' of https://github.com/NCAR/ccpp-framewo…
8d8589e
Cleanup VarCompatObj creation
dustinswales 219f2e9
Bug fix for initialized_set_block (#503)
grantfirl 3e14fa8
Vertical flipping working w/ new metadata attribute. Work in progress
dustinswales c29b0c0
Some more changes. Vertical flipping working
dustinswales 19f6a30
Housekeeping
dustinswales aae4b43
Add kind transform to transform test
dustinswales c3d2b3a
Add local declaration of vertical extent, needed for vertical flipping
dustinswales ea01a47
Everything but getting the correct local variable name for the vertic…
dustinswales e47bf8f
Add snippet from Steve G. to get correct local_name for vertical_laye…
dustinswales 253ad3a
Address reviewers comments
fe5f213
Address reviewers comments again
fc337a9
Address reviewers comments again again
3b04594
Merge branch 'feature/capgen' of https://github.com/NCAR/ccpp-framewo…
1db0447
Rename tests directory to test_prebuild
climbfuji f08fd63
Add test for ccpp_prebuild for blocked data structures
climbfuji a9e194a
Add CI tests for ccpp-prebuild
climbfuji 3714ef8
Debugging CI workflow for prebuild
climbfuji d2e446e
Self-review
climbfuji 998cc7b
Merge branch 'main' of https://github.com/NCAR/ccpp-framework into fe…
8d3af68
Merge branch 'feature/capgen' of https://github.com/NCAR/ccpp-framewo…
9b206f1
Revert "Merge branch 'main' of https://github.com/NCAR/ccpp-framework…
b5cc909
Activate var_action_test
4ec1cba
test_prebuild/test_blocked_data: 'use, intrinsic :: iso_fortran_env, …
climbfuji e6ffbd5
Fix unit tests for variable transformations. Reorganization a bit to …
e9c79eb
Cleanup forward/reverse transform terminology
bb4975a
Doc tests for transformations
265a05b
Add more inline documentation. Address reviewers comments.
0d0cfcd
Address reviewer comment
f280ef5
Update authors in CMakeList.
54e5462
Update authors in CMakeList.
1cc6da4
Address reviewer comment
0eca5c2
Merge pull request #515 from climbfuji/feature/ccpp_prebuild_blocked_…
climbfuji 44f005f
Address comments
4aae9ad
Rename var_action test var_compatability
44d834b
Merge branch 'main' of https://github.com/NCAR/ccpp-framework into fe…
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: ccpp-prebuild | ||
|
|
||
| on: | ||
| pull_request: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| jobs: | ||
| unit-tests: | ||
|
|
||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install flake8 pytest | ||
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
| - name: ccpp-prebuild unit tests | ||
| run: | | ||
| export PYTHONPATH=$(pwd)/scripts:$(pwd)/scripts/parse_tools | ||
| cd test_prebuild | ||
| python3 test_metadata_parser.py | ||
| python3 test_mkstatic.py | ||
| - name: ccpp-prebuild blocked data tests | ||
| run: | | ||
| cd test_prebuild/test_blocked_data | ||
| python3 ../../scripts/ccpp_prebuild.py --config=ccpp_prebuild_config.py --builddir=build | ||
| cd build | ||
| cmake .. | ||
| make | ||
| ./test_blocked_data.x |
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
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.