Skip to content

Commit 0e381d5

Browse files
Replace icplocn2atm (integer) with use_oceanuv (logical) (NOAA-EMC#1001)
* Replaces the current integer option of icplocn2atm with a logical flag use_oceanuv * Current UFS RT which utilizes the ocean surface currents in the ATM is B4B with this change
1 parent e782616 commit 0e381d5

4 files changed

Lines changed: 12 additions & 16 deletions

File tree

ccpp/data/GFS_typedefs.F90

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,9 +1374,7 @@ module GFS_typedefs
13741374
!< 6=areodynamical roughness over water with input 10-m wind
13751375
!< 7=slightly decrease Cd for higher wind speed compare to 6
13761376
!--- air_sea_flux scheme
1377-
integer :: icplocn2atm !< air_sea flux options over ocean:
1378-
!< 0=no change
1379-
!< l=including ocean current in the computation of air_sea fluxes
1377+
logical :: use_oceanuv !< flag for including ocean current in the computation of air_sea fluxes
13801378

13811379
!--- potential temperature definition in surface layer physics
13821380
logical :: thsfc_loc !< flag for local vs. standard potential temperature
@@ -3952,9 +3950,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
39523950
!< 6=areodynamical roughness over water with input 10-m wind
39533951
!< 7=slightly decrease Cd for higher wind speed compare to 6
39543952
!< negative when cplwav2atm=.true. - i.e. two way wave coupling
3955-
integer :: icplocn2atm = 0 !< air_sea_flux options over ocean
3956-
!< 0=ocean current is not used in the computation of air_sea fluxes
3957-
!< 1=including ocean current in the computation of air_sea fluxes
3953+
logical :: use_oceanuv = .false. !< flag for air_sea_flux options over ocean
39583954

39593955
!--- potential temperature definition in surface layer physics
39603956
logical :: thsfc_loc = .true. !< flag for local vs. standard potential temperature
@@ -4245,7 +4241,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
42454241
frac_grid, min_lakeice, min_seaice, min_lake_height, &
42464242
ignore_lake, frac_ice, &
42474243
!--- surface layer
4248-
sfc_z0_type, icplocn2atm, &
4244+
sfc_z0_type, use_oceanuv, &
42494245
!--- switch beteeen local and standard potential temperature
42504246
thsfc_loc, &
42514247
!--- switches in 2-m diagnostics
@@ -5274,7 +5270,7 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, &
52745270
!--- surface layer
52755271
Model%sfc_z0_type = sfc_z0_type
52765272
if (Model%cplwav2atm) Model%sfc_z0_type = -1
5277-
Model%icplocn2atm = icplocn2atm
5273+
Model%use_oceanuv = use_oceanuv
52785274

52795275
!--- potential temperature reference in sfc layer
52805276
Model%thsfc_loc = thsfc_loc
@@ -7151,7 +7147,7 @@ subroutine control_print(Model)
71517147
print *, ' '
71527148
print *, 'surface layer options'
71537149
print *, ' sfc_z0_type : ', Model%sfc_z0_type
7154-
print *, ' icplocn2atm : ', Model%icplocn2atm
7150+
print *, ' use_oceanuv : ', Model%use_oceanuv
71557151
print *, ' '
71567152
print *, 'vertical diffusion coefficients'
71577153
print *, ' xkzm_m : ', Model%xkzm_m

ccpp/data/GFS_typedefs.meta

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2975,7 +2975,7 @@
29752975
active = ((flag_for_surface_flux_coupling .or. do_fire_coupling) .and. do_mediator_atmosphere_ocean_fluxes)
29762976
[sncovr1_lnd]
29772977
standard_name = surface_snow_area_fraction_over_land_from_land
2978-
long_name = surface snow area fraction over land for coupling
2978+
long_name = surface snow area fraction over land for coupling
29792979
units = frac
29802980
dimensions = (horizontal_dimension)
29812981
type = real
@@ -6142,12 +6142,12 @@
61426142
units = flag
61436143
dimensions = ()
61446144
type = integer
6145-
[icplocn2atm]
6146-
standard_name = control_for_air_sea_flux_computation_over_water
6145+
[use_oceanuv]
6146+
standard_name = do_air_sea_flux_computation_over_water
61476147
long_name = air-sea flux option
6148-
units = 1
6148+
units = flag
61496149
dimensions = ()
6150-
type = integer
6150+
type = logical
61516151
[xkzminv]
61526152
standard_name = max_atmosphere_heat_diffusivity_due_to_background
61536153
long_name = maximum background value of heat diffusivity

fv3/atmos_cubed_sphere

0 commit comments

Comments
 (0)