Skip to content

Commit

Permalink
fix some optional arugments
Browse files Browse the repository at this point in the history
  • Loading branch information
grantfirl committed Oct 24, 2024
1 parent f3eeb34 commit 7e2d83b
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rrtmg_pre.F90
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ subroutine GFS_rrtmg_pre_run (im, levs, lm, lmk, lmp, n_var_lndp, lextop,&
real(kind=kind_phys), dimension(:,:,:), intent(out) :: faerlw1,&
faerlw2,&
faerlw3
real(kind=kind_phys), dimension(:,:), intent(out) :: alpha
real(kind=kind_phys), dimension(:,:), intent(out), optional :: alpha
character(len=*), intent(out) :: errmsg
integer, intent(out) :: errflg

Expand Down
1 change: 1 addition & 0 deletions physics/Interstitials/UFS_SCM_NEPTUNE/GFS_rrtmg_pre.meta
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,7 @@
type = real
kind = kind_phys
intent = out
optional = True
[top_at_1]
standard_name = flag_for_vertical_ordering_in_radiation
long_name = flag for vertical ordering in radiation
Expand Down
3 changes: 2 additions & 1 deletion physics/Radiation/RRTMG/radlw_main.F90
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@ subroutine rrtmg_lw_run &

real (kind=kind_phys), dimension(:), intent(in) :: sfemis, &
& sfgtmp, de_lgth
real (kind=kind_phys), dimension(npts,nlay), intent(in) :: alpha
real (kind=kind_phys), dimension(npts,nlay),intent(in),optional:: &
alpha

real (kind=kind_phys), dimension(:,:,:),intent(in):: &
& aeraod, aerssa
Expand Down
1 change: 1 addition & 0 deletions physics/Radiation/RRTMG/radlw_main.meta
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[npts]
standard_name = horizontal_loop_extent
long_name = horizontal dimension
Expand Down
3 changes: 2 additions & 1 deletion physics/Radiation/RRTMG/radsw_main.F90
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ subroutine rrtmg_sw_run &

real (kind=kind_phys), intent(in) :: cosz(npts), solcon, &
& de_lgth(npts)
real (kind=kind_phys), dimension(npts,nlay), intent(in) :: alpha
real (kind=kind_phys), dimension(npts,nlay),intent(in),optional:: &
alpha

! --- outputs:
real (kind=kind_phys), dimension(:,:), intent(inout) :: hswc
Expand Down
1 change: 1 addition & 0 deletions physics/Radiation/RRTMG/radsw_main.meta
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[cosz]
standard_name = cosine_of_solar_zenith_angle_for_daytime_points_on_radiation_timestep
long_name = cosine of the solar zenit angle
Expand Down
6 changes: 4 additions & 2 deletions physics/SFC_Models/SeaIce/CICE/sfc_cice.f
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ subroutine sfc_cice_run &

! real (kind=kind_phys), dimension(im), intent(in) :: u1, v1, &
real (kind=kind_phys), dimension(:), intent(in) :: &
& t1, q1, cm, ch, prsl1, wind, snowd

& t1, q1, cm, ch, prsl1, wind
real (kind=kind_phys), dimension(:), intent(in), optional :: &
& snowd

real (kind=kind_phys), dimension(:), intent(in), optional :: &
& dqsfc, dtsfc, dusfc, dvsfc
logical, dimension(:), intent(in) :: flag_cice, flag_iter
Expand Down
1 change: 1 addition & 0 deletions physics/SFC_Models/SeaIce/CICE/sfc_cice.meta
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
type = real
kind = kind_phys
intent = in
optional = True
[qsurf]
standard_name = surface_specific_humidity_over_ice
long_name = surface air saturation specific humidity over ice
Expand Down

0 comments on commit 7e2d83b

Please sign in to comment.