forked from NCAR/ccpp-physics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from dustinswales/rrtmgp-dev
Created new rrtmgp-dev(2) branch. Something got corrupted.
- Loading branch information
Showing
40 changed files
with
11,350 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# Auto-generated include files in Fortran code | ||
*.inc | ||
physics/*cap.F90 | ||
physics/*.xml | ||
*.cmake | ||
*.mk | ||
*.html | ||
physics/rte-rrtmgp |
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,4 @@ | ||
[submodule "physics/rte-rrtmgp"] | ||
path = physics/rte-rrtmgp | ||
url = https://[email protected]/dustinswales/rte-rrtmgp | ||
branch = rrtmgp-CCPP |
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,69 @@ | ||
!> \file GFS_rrtmgp_gas_optics.f90 | ||
!! This file contains | ||
module GFS_rrtmgp_gas_optics | ||
use machine, only: kind_phys | ||
use GFS_typedefs, only: GFS_control_type,GFS_radtend_type | ||
|
||
public GFS_rrtmgp_gas_optics_init,GFS_rrtmgp_gas_optics_run,GFS_rrtmgp_gas_optics_finalize | ||
contains | ||
|
||
!! \section arg_table_GFS_rrtmgp_gas_optics_init | ||
!! \htmlinclude GFS_rrtmgp_gas_optics.html | ||
!! | ||
|
||
! ######################################################################################### | ||
! SUBROUTINE GFS_rrtmgp_gas_optics_init() | ||
! ######################################################################################### | ||
subroutine GFS_rrtmgp_gas_optics_init(Model, Radtend, errmsg, errflg) | ||
! Inputs | ||
type(GFS_control_type), intent(in) :: & | ||
Model ! DDT containing model control parameters | ||
type(GFS_radtend_type), intent(inout) :: & | ||
Radtend ! Fortran DDT containing FV3-GFS radiation tendencies | ||
! Outputs | ||
character(len=*), intent(out) :: & | ||
errmsg ! Error message | ||
integer, intent(out) :: & | ||
errflg ! Error flag | ||
|
||
! Local variables | ||
character(len=1) :: tempstr | ||
integer :: ij, count | ||
integer,dimension(Model%ngases,2) :: gasIndices | ||
|
||
! Initialize | ||
errmsg = '' | ||
errflg = 0 | ||
|
||
! Which gases are active? Provided via physics namelist. | ||
if (len(Model%active_gases) .gt. 0) then | ||
|
||
! Pull out gas names from list... | ||
! First grab indices in character array corresponding to start:end of gas name. | ||
gasIndices(1,1)=1 | ||
count=1 | ||
do ij=1,len(Model%active_gases) | ||
tempstr=trim(Model%active_gases(ij:ij)) | ||
if (tempstr .eq. '_') then | ||
gasIndices(count,2)=ij-1 | ||
gasIndices(count+1,1)=ij+1 | ||
count=count+1 | ||
endif | ||
enddo | ||
gasIndices(Model%ngases,2)=len(trim(Model%active_gases)) | ||
! Now extract the gas names | ||
do ij=1,Model%ngases | ||
Radtend%active_gases(ij) = Model%active_gases(gasIndices(ij,1):gasIndices(ij,2)) | ||
enddo | ||
endif | ||
end subroutine GFS_rrtmgp_gas_optics_init | ||
! | ||
subroutine GFS_rrtmgp_gas_optics_run() | ||
|
||
|
||
end subroutine GFS_rrtmgp_gas_optics_run | ||
! | ||
subroutine GFS_rrtmgp_gas_optics_finalize() | ||
end subroutine GFS_rrtmgp_gas_optics_finalize | ||
! | ||
end module GFS_rrtmgp_gas_optics |
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,46 @@ | ||
[ccpp-arg-table] | ||
name = GFS_rrtmgp_gas_optics_init | ||
type = scheme | ||
[Model] | ||
standard_name = GFS_control_type_instance | ||
long_name = instance of derived type GFS_control_type | ||
units = DDT | ||
dimensions = () | ||
type = GFS_control_type | ||
intent = in | ||
optional = F | ||
[Radtend] | ||
standard_name = GFS_radtend_type_instance | ||
long_name = instance of derived type GFS_radtend_type | ||
units = DDT | ||
dimensions = () | ||
type = GFS_radtend_type | ||
intent = inout | ||
optional = F | ||
[errmsg] | ||
standard_name = ccpp_error_message | ||
long_name = error message for error handling in CCPP | ||
units = none | ||
dimensions = () | ||
type = character | ||
kind = len=* | ||
intent = out | ||
optional = F | ||
[errflg] | ||
standard_name = ccpp_error_flag | ||
long_name = error flag for error handling in CCPP | ||
units = flag | ||
dimensions = () | ||
type = integer | ||
intent = out | ||
optional = F | ||
|
||
######################################################################## | ||
[ccpp-arg-table] | ||
name = GFS_rrtmgp_gas_optics_run | ||
type = scheme | ||
|
||
######################################################################## | ||
[ccpp-arg-table] | ||
name = GFS_rrtmgp_gas_optics_finalize | ||
type = scheme |
Oops, something went wrong.