-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address reviewer comments. Add expanded test for transforms
- Loading branch information
1 parent
2eee649
commit 4d24e9f
Showing
12 changed files
with
245 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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,42 @@ | ||
!Test unit conversions for intent in, inout, out variables | ||
! | ||
|
||
module effr_diag | ||
|
||
use ccpp_kinds, only: kind_phys | ||
|
||
implicit none | ||
private | ||
|
||
public :: effr_diag_run | ||
|
||
contains | ||
|
||
!> \section arg_table_effr_diag_run Argument Table | ||
!! \htmlinclude arg_table_effr_diag_run.html | ||
!! | ||
subroutine effr_diag_run( effrr_in, errmsg, errflg) | ||
|
||
real(kind_phys), intent(in) :: effrr_in(:,:) | ||
character(len=512), intent(out) :: errmsg | ||
integer, intent(out) :: errflg | ||
!---------------------------------------------------------------- | ||
real(kind_phys) :: effrr_min, effrr_max | ||
|
||
errmsg = '' | ||
errflg = 0 | ||
|
||
call cmp_effr_diag(effrr_in, effrr_min, effrr_max) | ||
|
||
end subroutine effr_diag_run | ||
|
||
subroutine cmp_effr_diag(effr, effr_min, effr_max) | ||
real(kind_phys), intent(in) :: effr(:,:) | ||
real(kind_phys), intent(out) :: effr_min, effr_max | ||
|
||
! Do some diagnostic calcualtions... | ||
effr_min = minval(effr) | ||
effr_max = maxval(effr) | ||
|
||
end subroutine cmp_effr_diag | ||
end module effr_diag |
This file contains 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,31 @@ | ||
[ccpp-table-properties] | ||
name = effr_diag | ||
type = scheme | ||
dependencies = | ||
[ccpp-arg-table] | ||
name = effr_diag_run | ||
type = scheme | ||
[effrr_in] | ||
standard_name = effective_radius_of_stratiform_cloud_rain_particle | ||
long_name = effective radius of cloud rain particle in micrometer | ||
units = um | ||
dimensions = (horizontal_loop_extent,vertical_layer_dimension) | ||
type = real | ||
kind = kind_phys | ||
intent = in | ||
top_at_one = True | ||
[ 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 |
This file contains 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,34 @@ | ||
!Test unit conversions for intent in, inout, out variables | ||
! | ||
|
||
module effr_post | ||
|
||
use ccpp_kinds, only: kind_phys | ||
|
||
implicit none | ||
private | ||
|
||
public :: effr_post_run | ||
|
||
contains | ||
|
||
!> \section arg_table_effr_post_run Argument Table | ||
!! \htmlinclude arg_table_effr_post_run.html | ||
!! | ||
subroutine effr_post_run( effrr_inout, errmsg, errflg) | ||
|
||
real(kind_phys), intent(inout) :: effrr_inout(:,:) | ||
character(len=512), intent(out) :: errmsg | ||
integer, intent(out) :: errflg | ||
!---------------------------------------------------------------- | ||
real(kind_phys) :: effrr_min, effrr_max | ||
|
||
errmsg = '' | ||
errflg = 0 | ||
|
||
! Do some post-processing on effrr... | ||
effrr_inout(:,:) = effrr_inout(:,:)*1._kind_phys | ||
|
||
end subroutine effr_post_run | ||
|
||
end module effr_post |
This file contains 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,30 @@ | ||
[ccpp-table-properties] | ||
name = effr_post | ||
type = scheme | ||
dependencies = | ||
[ccpp-arg-table] | ||
name = effr_post_run | ||
type = scheme | ||
[effrr_inout] | ||
standard_name = effective_radius_of_stratiform_cloud_rain_particle | ||
long_name = effective radius of cloud rain particle in micrometer | ||
units = m | ||
dimensions = (horizontal_loop_extent,vertical_layer_dimension) | ||
type = real | ||
kind = kind_phys | ||
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 |
This file contains 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,34 @@ | ||
!Test unit conversions for intent in, inout, out variables | ||
! | ||
|
||
module effr_pre | ||
|
||
use ccpp_kinds, only: kind_phys | ||
|
||
implicit none | ||
private | ||
|
||
public :: effr_pre_run | ||
|
||
contains | ||
|
||
!> \section arg_table_effr_pre_run Argument Table | ||
!! \htmlinclude arg_table_effr_pre_run.html | ||
!! | ||
subroutine effr_pre_run( effrr_inout, errmsg, errflg) | ||
|
||
real(kind_phys), intent(inout) :: effrr_inout(:,:) | ||
character(len=512), intent(out) :: errmsg | ||
integer, intent(out) :: errflg | ||
!---------------------------------------------------------------- | ||
real(kind_phys) :: effrr_min, effrr_max | ||
|
||
errmsg = '' | ||
errflg = 0 | ||
|
||
! Do some pre-processing on effrr... | ||
effrr_inout(:,:) = effrr_inout(:,:)*1._kind_phys | ||
|
||
end subroutine effr_pre_run | ||
|
||
end module effr_pre |
This file contains 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,30 @@ | ||
[ccpp-table-properties] | ||
name = effr_pre | ||
type = scheme | ||
dependencies = | ||
[ccpp-arg-table] | ||
name = effr_pre_run | ||
type = scheme | ||
[effrr_inout] | ||
standard_name = effective_radius_of_stratiform_cloud_rain_particle | ||
long_name = effective radius of cloud rain particle in micrometer | ||
units = m | ||
dimensions = (horizontal_loop_extent,vertical_layer_dimension) | ||
type = real | ||
kind = kind_phys | ||
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 |
This file contains 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 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 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 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
effr_calc.meta | ||
effr_diag.meta | ||
effr_pre.meta | ||
effr_post.meta |
This file contains 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