Skip to content

Commit d47eb27

Browse files
committed
Changes from fortran-to-metadata comparision
1 parent 5eb8312 commit d47eb27

41 files changed

Lines changed: 149 additions & 70 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

physics/CONV/Grell_Freitas/cu_gf_driver.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ subroutine cu_gf_driver_run(ntracer,garea,im,km,dt,flag_init,flag_restart, gf_co
129129
integer, dimension (:), intent(out) :: hbot,htop,kcnv
130130
integer, dimension (:), intent(in) :: xland
131131
real(kind=kind_phys), dimension (:), intent(in) :: pbl
132-
real(kind=kind_phys), dimension (:), intent(in) :: maxMF
132+
real(kind=kind_phys), dimension (:), intent(in), optional :: maxMF
133133
!$acc declare copyout(hbot,htop,kcnv)
134134
!$acc declare copyin(xland,pbl)
135135
integer, dimension (im) :: tropics

physics/CONV/Grell_Freitas/cu_gf_driver.meta

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@
335335
type = real
336336
kind = kind_phys
337337
intent = inout
338+
optional = True
338339
[cliw]
339340
standard_name = ice_water_mixing_ratio_convective_transport_tracer
340341
long_name = ratio of mass of ice water to mass of dry air plus vapor (without condensates) in the convectively transported tracer array

physics/CONV/SAMF/samfdeepcnv.f

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ module samfdeepcnv
1111
use progomega, only : progomega_calc
1212

1313
contains
14-
14+
!! \section arg_table_samfdeepcnv_init Argument Table
15+
!! \htmlinclude samfdeepcnv_init.html
16+
!!
1517
subroutine samfdeepcnv_init(imfdeepcnv,imfdeepcnv_samf, &
1618
& errmsg, errflg)
1719

physics/CONV/SAMF/samfshalcnv.f

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ module samfshalcnv
99
use progomega, only : progomega_calc
1010
contains
1111

12+
!! \section arg_table_samfshalcnv_init Argument Table
13+
!! \htmlinclude samfshalcnv_init.html
14+
!!
1215
subroutine samfshalcnv_init(imfshalcnv, imfshalcnv_samf, &
1316
& errmsg, errflg)
1417

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_MP_generic_post.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
229229
type = real
230230
kind = kind_phys
231-
intent = in
231+
intent = inout
232232
[gq0]
233233
standard_name = tracer_concentration_of_new_state
234234
long_name = tracer concentration updated by physics

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_SCNV_generic_pre.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers)
9999
type = real
100100
kind = kind_phys
101-
intent = in
101+
intent = inout
102102
[ntqv]
103103
standard_name = index_of_specific_humidity_in_tracer_concentration_array
104104
long_name = tracer index for water vapor (specific humidity)

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rad_time_vary.scm.F90

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ subroutine GFS_rad_time_vary_timestep_init (lrseeds, rseeds,
2929

3030
! Interface variables
3131
logical, intent(in) :: lrseeds
32-
integer, intent(in) :: rseeds(:,:)
32+
integer, intent(in), optional :: rseeds(:,:)
3333
integer, intent(in) :: isubc_lw, isubc_sw, cnx, cny, isc, jsc, kdt
3434
integer, intent(in) :: imp_physics, imp_physics_zhao_carr, ipsd0, ipsdlim
3535
logical, intent(in) :: lslwr, lsswr
36-
integer, intent(inout) :: icsdsw(:), icsdlw(:)
36+
integer, intent(inout), optional :: icsdsw(:), icsdlw(:)
3737
integer, intent(in) :: imap(:), jmap(:)
3838
real(kind_phys), intent(in) :: sec
39-
real(kind_phys), intent(inout) :: ps_2delt(:)
40-
real(kind_phys), intent(inout) :: ps_1delt(:)
41-
real(kind_phys), intent(inout) :: t_2delt(:,:)
42-
real(kind_phys), intent(inout) :: t_1delt(:,:)
43-
real(kind_phys), intent(inout) :: qv_2delt(:,:)
44-
real(kind_phys), intent(inout) :: qv_1delt(:,:)
39+
real(kind_phys), intent(inout), optional :: ps_2delt(:)
40+
real(kind_phys), intent(inout), optional :: ps_1delt(:)
41+
real(kind_phys), intent(inout), optional :: t_2delt(:,:)
42+
real(kind_phys), intent(inout), optional :: t_1delt(:,:)
43+
real(kind_phys), intent(inout), optional :: qv_2delt(:,:)
44+
real(kind_phys), intent(inout), optional :: qv_1delt(:,:)
4545
real(kind_phys), intent(in) :: t(:,:), qv(:,:), ps(:)
4646
character(len=*), intent(out) :: errmsg
4747
integer, intent(out) :: errflg

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_radiation_surface.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
units = flag
328328
dimensions = (horizontal_loop_extent)
329329
type = integer
330-
intent = inout
330+
intent = in
331331
[alvsf]
332332
standard_name = vis_albedo_strong_cosz
333333
long_name = mean vis albedo with strong cosz dependency

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rrtmg_post.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module GFS_rrtmg_post
1919
!! \htmlinclude GFS_rrtmg_post_run.html
2020
!!
2121
subroutine GFS_rrtmg_post_run (im, km, kmp1, lm, ltp, kt, kb, kd, nspc1, &
22-
nfxr, nday, lsswr, lslwr, lssav, fhlwr, fhswr, raddt, coszen, &
22+
lmk,nfxr, nday, lsswr, lslwr, lssav, fhlwr, fhswr, raddt, coszen,&
2323
coszdg, prsi, tgrs, aerodp, cldsa, mtopa, mbota, clouds1, &
2424
cldtaulw, cldtausw, sfcflw, sfcfsw, topflw, topfsw, scmpsw, &
2525
fluxr, total_albedo, errmsg, errflg)
@@ -33,7 +33,7 @@ subroutine GFS_rrtmg_post_run (im, km, kmp1, lm, ltp, kt, kb, kd, nspc1, &
3333

3434
! Interface variables
3535
integer, intent(in) :: im, km, kmp1, lm, ltp, kt, kb, kd, &
36-
nspc1, nfxr, nday
36+
nspc1, nfxr, nday, lmk
3737
logical, intent(in) :: lsswr, lslwr, lssav
3838
real(kind=kind_phys), intent(in) :: raddt, fhlwr, fhswr
3939

@@ -45,9 +45,9 @@ subroutine GFS_rrtmg_post_run (im, km, kmp1, lm, ltp, kt, kb, kd, nspc1, &
4545
real(kind=kind_phys), dimension(im,NSPC1), intent(in) :: aerodp
4646
real(kind=kind_phys), dimension(im,5), intent(in) :: cldsa
4747
integer, dimension(im,3), intent(in) :: mbota, mtopa
48-
real(kind=kind_phys), dimension(im,lm+LTP), intent(in) :: clouds1
49-
real(kind=kind_phys), dimension(im,lm+LTP), intent(in) :: cldtausw
50-
real(kind=kind_phys), dimension(im,lm+LTP), intent(in) :: cldtaulw
48+
real(kind=kind_phys), dimension(im,lmk), intent(in) :: clouds1
49+
real(kind=kind_phys), dimension(im,lmk), intent(in) :: cldtausw
50+
real(kind=kind_phys), dimension(im,lmk), intent(in) :: cldtaulw
5151
real(kind=kind_phys), dimension(im), intent(inout) :: total_albedo
5252

5353
type(sfcflw_type), dimension(im), intent(in) :: sfcflw

physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rrtmg_post.meta

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
dimensions = ()
4545
type = integer
4646
intent = in
47+
[lmk]
48+
standard_name = adjusted_vertical_layer_dimension_for_radiation
49+
long_name = adjusted number of vertical layers for radiation
50+
units = count
51+
dimensions = ()
52+
type = integer
53+
intent = in
4754
[kt]
4855
standard_name = vertical_index_difference_between_layer_and_upper_bound
4956
long_name = vertical index difference between layer and upper bound

0 commit comments

Comments
 (0)