-
Notifications
You must be signed in to change notification settings - Fork 24
D-grid data input method #42
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
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
e70894d
Testing changes reflected across branches
2a8b97a
Undoing changes made in build_gaea_c5.sh
e2cdd5c
Testing vscode functionality, by adding a change to external_grid branch
fmalatino b4d9e5d
Testing vscode functionality, by adding a change to external_grid branch
fmalatino 7038e30
After sync from PR 31 fixing GFDL constant names
fmalatino 5b0991d
Addition of from_generated method and calc_flag to util/pace/util/gri…
fmalatino 9001af1
Added get_grid method for external grid data to driver/pace/driver/gr…
fmalatino 65c0e14
Preliminary xarray netcdf read in method added to driver/pace/driver/…
fmalatino dedd711
Updating util/pace/util/grid/generation.py from_generated method
fmalatino 21e76c6
Merged PR 32
fmalatino 17e281b
Addition of external grid data read in methods for initialization of …
fmalatino 3a627aa
driver/examples/configs/test_external_C12_1x1.yaml
fmalatino f21774f
Merge branch 'main' into external_grid
fmalatino 396025c
Preliminary unit test for external grid data read in
fmalatino a63be71
Current state of unit tests as of 27 Nov 2023
fmalatino d95e1fd
External grid method and unit tests added
fmalatino 99b47ed
Merge branch 'external_grid' of github.com:fmalatino/pace into extern…
fmalatino a536d95
Re-excluding external grid data yamls from test_example_configs.py
fmalatino 6b9ff5e
Update driver/pace/driver/grid.py
fmalatino 8e0b829
Changed name of grid initializer function to match NetCDF dependency …
fmalatino caa2d43
Update util/pace/util/grid/generation.py
fmalatino 6690e68
Fixed indentation error in generation.py from suggestion in PR 42
fmalatino ada497b
Removal of TODO comment in grid.py, changes to method of file accessi…
fmalatino 6c1acfb
Changed grid data read-in unit tests to compare data directly from fi…
fmalatino d48f2ba
Change to reading in lon and lat, other metric terms calculated as ne…
fmalatino 136db1a
Removed read-in of dx, dy, and area. Changed unit tests to compare ca…
fmalatino 0be3439
Update tests/mpi_54rank/test_external_grid_1x1.py
fmalatino 2d8eb41
Added comparisons for read-in vs generated by driver lon, lat, dx, dy…
fmalatino b7f379f
Added relative error calculations to unit tests for external grid dat…
fmalatino 264549a
External grid data read in tests changed: relative errors printed by …
fmalatino 75a3e1d
Removing commented out sections in test_external_grid_2x2.py
fmalatino f0a4a4d
Updated external grid data read-in to take configuration and input da…
fmalatino 20ffd3f
Merging recent changes of 'main' into 'external_grid'
fmalatino 1b7ca1a
Updated documentation in grid.py
fmalatino 39467a9
Updated external grid data read in unit test to use parametrize funct…
fmalatino f6f1bb5
Merged changes from PR 36
fmalatino f37c4fd
Ammended files to reference changes to PR 36
fmalatino 772e474
Merge branch 'main' into external_grid after PR 44 merge
fmalatino 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| stencil_config: | ||
| compilation_config: | ||
| backend: numpy | ||
| rebuild: false | ||
| validate_args: true | ||
| format_source: false | ||
| device_sync: false | ||
| grid_config: | ||
| type: external | ||
| config: | ||
| grid_type: 0 | ||
| grid_file_path: "../../../test_input/C12.tile" | ||
| eta_file: '../../../tests/main/input/eta79.nc' | ||
| initialization: | ||
| type: analytic | ||
| config: | ||
| case: baroclinic | ||
| performance_config: | ||
| collect_performance: true | ||
| experiment_name: c12_baroclinic | ||
| nx_tile: 12 | ||
| nz: 79 | ||
| dt_atmos: 225 | ||
| minutes: 15 | ||
| layout: | ||
| - 1 | ||
| - 1 | ||
| diagnostics_config: | ||
| path: output | ||
| output_format: netcdf | ||
| names: | ||
| - u | ||
| - v | ||
| - ua | ||
| - va | ||
| - pt | ||
| - delp | ||
| - qvapor | ||
| - qliquid | ||
| - qice | ||
| - qrain | ||
| - qsnow | ||
| - qgraupel | ||
| z_select: | ||
| - level: 65 | ||
| names: | ||
| - pt | ||
| dycore_config: | ||
| a_imp: 1.0 | ||
| beta: 0. | ||
| consv_te: 0. | ||
| d2_bg: 0. | ||
| d2_bg_k1: 0.2 | ||
| d2_bg_k2: 0.1 | ||
| d4_bg: 0.15 | ||
| d_con: 1.0 | ||
| d_ext: 0.0 | ||
| dddmp: 0.5 | ||
| delt_max: 0.002 | ||
| do_sat_adj: true | ||
| do_vort_damp: true | ||
| fill: true | ||
| hord_dp: 6 | ||
| hord_mt: 6 | ||
| hord_tm: 6 | ||
| hord_tr: 8 | ||
| hord_vt: 6 | ||
| hydrostatic: false | ||
| k_split: 1 | ||
| ke_bg: 0. | ||
| kord_mt: 9 | ||
| kord_tm: -9 | ||
| kord_tr: 9 | ||
| kord_wz: 9 | ||
| n_split: 1 | ||
| nord: 3 | ||
| nwat: 6 | ||
| p_fac: 0.05 | ||
| rf_cutoff: 3000. | ||
| rf_fast: true | ||
| tau: 10. | ||
| vtdm4: 0.06 | ||
| z_tracer: true | ||
| do_qa: true | ||
| tau_i2s: 1000. | ||
| tau_g2v: 1200. | ||
| ql_gen: 0.001 | ||
| ql_mlt: 0.002 | ||
| qs_mlt: 0.000001 | ||
| qi_lim: 1.0 | ||
| dw_ocean: 0.1 | ||
| dw_land: 0.15 | ||
| icloud_f: 0 | ||
| tau_l2v: 300. | ||
| tau_v2l: 90. | ||
| fv_sg_adj: 0 | ||
| n_sponge: 48 | ||
| u_max: 355.0 | ||
|
|
||
| physics_config: | ||
| hydrostatic: false | ||
| nwat: 6 | ||
| do_qa: true |
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,103 @@ | ||
| stencil_config: | ||
| compilation_config: | ||
| backend: numpy | ||
| rebuild: false | ||
| validate_args: true | ||
| format_source: false | ||
| device_sync: false | ||
| grid_config: | ||
| type: external | ||
| config: | ||
| grid_type: 0 | ||
| grid_file_path: "../../../test_input/C12.tile" | ||
| eta_file: '../../../tests/main/input/eta79.nc' | ||
| initialization: | ||
| type: analytic | ||
| config: | ||
| case: baroclinic | ||
| performance_config: | ||
| collect_performance: true | ||
| experiment_name: c12_baroclinic | ||
| nx_tile: 12 | ||
| nz: 79 | ||
| dt_atmos: 225 | ||
| minutes: 15 | ||
| layout: | ||
| - 2 | ||
| - 2 | ||
| diagnostics_config: | ||
| path: output | ||
| output_format: netcdf | ||
| names: | ||
| - u | ||
| - v | ||
| - ua | ||
| - va | ||
| - pt | ||
| - delp | ||
| - qvapor | ||
| - qliquid | ||
| - qice | ||
| - qrain | ||
| - qsnow | ||
| - qgraupel | ||
| z_select: | ||
| - level: 65 | ||
| names: | ||
| - pt | ||
| dycore_config: | ||
| a_imp: 1.0 | ||
| beta: 0. | ||
| consv_te: 0. | ||
| d2_bg: 0. | ||
| d2_bg_k1: 0.2 | ||
| d2_bg_k2: 0.1 | ||
| d4_bg: 0.15 | ||
| d_con: 1.0 | ||
| d_ext: 0.0 | ||
| dddmp: 0.5 | ||
| delt_max: 0.002 | ||
| do_sat_adj: true | ||
| do_vort_damp: true | ||
| fill: true | ||
| hord_dp: 6 | ||
| hord_mt: 6 | ||
| hord_tm: 6 | ||
| hord_tr: 8 | ||
| hord_vt: 6 | ||
| hydrostatic: false | ||
| k_split: 1 | ||
| ke_bg: 0. | ||
| kord_mt: 9 | ||
| kord_tm: -9 | ||
| kord_tr: 9 | ||
| kord_wz: 9 | ||
| n_split: 1 | ||
| nord: 3 | ||
| nwat: 6 | ||
| p_fac: 0.05 | ||
| rf_cutoff: 3000. | ||
| rf_fast: true | ||
| tau: 10. | ||
| vtdm4: 0.06 | ||
| z_tracer: true | ||
| do_qa: true | ||
| tau_i2s: 1000. | ||
| tau_g2v: 1200. | ||
| ql_gen: 0.001 | ||
| ql_mlt: 0.002 | ||
| qs_mlt: 0.000001 | ||
| qi_lim: 1.0 | ||
| dw_ocean: 0.1 | ||
| dw_land: 0.15 | ||
| icloud_f: 0 | ||
| tau_l2v: 300. | ||
| tau_v2l: 90. | ||
| fv_sg_adj: 0 | ||
| n_sponge: 48 | ||
| u_max: 355.0 | ||
|
|
||
| physics_config: | ||
| hydrostatic: false | ||
| nwat: 6 | ||
| do_qa: true |
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.