-
Notifications
You must be signed in to change notification settings - Fork 67
New implementation of differing module name #646
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
9 commits
Select commit
Hold shift + click to select a range
656fdfe
New implementation of differing module name
eeb16c2
Fix doctests
cfe5c8d
Fix unit test failure caused by previous error message cleanup
4a97ab5
Add scheme file with different module name as test
8349e0c
Allow host model DDTs to be inputs to schemes
e260dd5
Host model uses DDT defined in schemes.
f4e57b1
Uncomment and fix var_compatibility_test checks
6c2d326
Fix typo
3c5fda9
Merge branch 'develop' into source_module_ddt_fixes
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,23 @@ | ||
| module mod_rad_ddt | ||
| USE ccpp_kinds, ONLY: kind_phys | ||
| implicit none | ||
|
|
||
| public ty_rad_lw, ty_rad_sw | ||
|
|
||
| !> \section arg_table_ty_rad_lw Argument Table | ||
| !! \htmlinclude arg_table_ty_rad_lw.html | ||
| !! | ||
| type ty_rad_lw | ||
| real(kind_phys) :: sfc_up_lw | ||
| real(kind_phys) :: sfc_down_lw | ||
| end type ty_rad_lw | ||
|
|
||
| !> \section arg_table_ty_rad_sw Argument Table | ||
| !! \htmlinclude arg_table_ty_rad_sw.html | ||
| !! | ||
| type ty_rad_sw | ||
| real(kind_phys) :: sfc_up_sw | ||
| real(kind_phys) :: sfc_down_sw | ||
| end type ty_rad_sw | ||
|
|
||
| end module mod_rad_ddt |
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,40 @@ | ||
| [ccpp-table-properties] | ||
| name = ty_rad_lw | ||
| type = ddt | ||
| dependencies = | ||
| module_name = mod_rad_ddt | ||
| [ccpp-arg-table] | ||
| name = ty_rad_lw | ||
| type = ddt | ||
| [ sfc_up_lw ] | ||
| standard_name = surface_upwelling_longwave_radiation_flux | ||
| units = W m2 | ||
| dimensions = () | ||
| type = real | ||
| kind = kind_phys | ||
| [ sfc_down_lw ] | ||
| standard_name = surface_downwelling_longwave_radiation_flux | ||
| units = W m2 | ||
| dimensions = () | ||
| type = real | ||
| kind = kind_phys | ||
|
|
||
| [ccpp-table-properties] | ||
| name = ty_rad_sw | ||
| type = ddt | ||
| module_name = mod_rad_ddt | ||
| [ccpp-arg-table] | ||
| name = ty_rad_sw | ||
| type = ddt | ||
| [ sfc_up_sw ] | ||
| standard_name = surface_upwelling_shortwave_radiation_flux | ||
| units = W m2 | ||
| dimensions = () | ||
| type = real | ||
| kind = kind_phys | ||
| [ sfc_down_sw ] | ||
| standard_name = surface_downwelling_shortwave_radiation_flux | ||
| units = W m2 | ||
| dimensions = () | ||
| type = real | ||
| kind = kind_phys |
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,35 @@ | ||
| module rad_lw | ||
| use ccpp_kinds, only: kind_phys | ||
| use mod_rad_ddt, only: ty_rad_lw | ||
|
|
||
| implicit none | ||
| private | ||
|
|
||
| public :: rad_lw_run | ||
|
|
||
| contains | ||
|
|
||
| !> \section arg_table_rad_lw_run Argument Table | ||
| !! \htmlinclude arg_table_rad_lw_run.html | ||
| !! | ||
| subroutine rad_lw_run(ncol, fluxLW, errmsg, errflg) | ||
|
|
||
| integer, intent(in) :: ncol | ||
| type(ty_rad_lw), intent(inout) :: fluxLW(:) | ||
| character(len=512), intent(out) :: errmsg | ||
| integer, intent(out) :: errflg | ||
|
|
||
| ! Locals | ||
| integer :: icol | ||
|
|
||
| errmsg = '' | ||
| errflg = 0 | ||
|
|
||
| do icol=1,ncol | ||
| fluxLW(icol)%sfc_up_lw = 300._kind_phys | ||
| fluxLW(icol)%sfc_down_lw = 50._kind_phys | ||
| enddo | ||
|
|
||
| end subroutine rad_lw_run | ||
|
|
||
| end module rad_lw |
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,35 @@ | ||
| [ccpp-table-properties] | ||
| name = rad_lw | ||
| type = scheme | ||
| dependencies = module_rad_ddt.F90 | ||
| [ccpp-arg-table] | ||
| name = rad_lw_run | ||
| type = scheme | ||
| [ ncol ] | ||
| standard_name = horizontal_loop_extent | ||
| type = integer | ||
| units = count | ||
| dimensions = () | ||
| intent = in | ||
| [fluxLW] | ||
| standard_name = longwave_radiation_fluxes | ||
| long_name = longwave radiation fluxes | ||
| units = W m-2 | ||
| dimensions = (horizontal_loop_extent) | ||
| type = ty_rad_lw | ||
| intent = inout | ||
| [ errmsg ] | ||
| standard_name = ccpp_error_message | ||
| long_name = Error message for error handling in CCPP | ||
| units = none | ||
| dimensions = () | ||
| type = character | ||
| kind = len=512 | ||
| intent = out | ||
| [ errflg ] | ||
| standard_name = ccpp_error_code | ||
| long_name = Error flag for error handling in CCPP | ||
| units = 1 | ||
| dimensions = () | ||
| type = integer | ||
| intent = out |
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.