Skip to content

Commit

Permalink
Merge pull request NCAR#40 from mdtoyNOAA/ufs/dev_drag_suite_intent_mods
Browse files Browse the repository at this point in the history
Changed UGWP diagnostic variable declaration intents from 'out' to 'inout'
  • Loading branch information
grantfirl authored Feb 22, 2023
2 parents 3362852 + 2241837 commit 235ef96
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions physics/drag_suite.F90
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,12 @@ subroutine drag_suite_run( &
real(kind=kind_phys), intent(inout) :: &
& dusfc(:), dvsfc(:)
!Output (optional):
real(kind=kind_phys), intent(out) :: &
real(kind=kind_phys), intent(inout) :: &
& dusfc_ms(:),dvsfc_ms(:), &
& dusfc_bl(:),dvsfc_bl(:), &
& dusfc_ss(:),dvsfc_ss(:), &
& dusfc_fd(:),dvsfc_fd(:)
real(kind=kind_phys), intent(out) :: &
real(kind=kind_phys), intent(inout) :: &
& dtaux2d_ms(:,:),dtauy2d_ms(:,:), &
& dtaux2d_bl(:,:),dtauy2d_bl(:,:), &
& dtaux2d_ss(:,:),dtauy2d_ss(:,:), &
Expand Down
32 changes: 16 additions & 16 deletions physics/drag_suite.meta
Original file line number Diff line number Diff line change
Expand Up @@ -277,63 +277,63 @@
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtauy2d_ms]
standard_name = tendency_of_y_wind_due_to_mesoscale_orographic_gravity_wave_drag
long_name = y wind tendency from mesoscale gwd
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtaux2d_bl]
standard_name = tendency_of_x_wind_due_to_blocking_drag
long_name = x wind tendency from blocking drag
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtauy2d_bl]
standard_name = tendency_of_y_wind_due_to_blocking_drag
long_name = y wind tendency from blocking drag
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtaux2d_ss]
standard_name = tendency_of_x_wind_due_to_small_scale_gravity_wave_drag
long_name = x wind tendency from small scale gwd
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtauy2d_ss]
standard_name = tendency_of_y_wind_due_to_small_scale_gravity_wave_drag
long_name = y wind tendency from small scale gwd
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtaux2d_fd]
standard_name = tendency_of_x_wind_due_to_form_drag
long_name = x wind tendency from form drag
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dtauy2d_fd]
standard_name = tendency_of_y_wind_due_to_form_drag
long_name = y wind tendency from form drag
units = m s-2
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
type = real
kind = kind_phys
intent = out
intent = inout
[dusfc]
standard_name = instantaneous_x_stress_due_to_gravity_wave_drag
long_name = zonal surface stress due to orographic gravity wave drag
Expand All @@ -357,63 +357,63 @@
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dvsfc_ms]
standard_name = vertically_integrated_y_momentum_flux_due_to_mesoscale_orographic_gravity_wave_drag
long_name = integrated y momentum flux from mesoscale gwd
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dusfc_bl]
standard_name = vertically_integrated_x_momentum_flux_due_to_blocking_drag
long_name = integrated x momentum flux from blocking drag
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dvsfc_bl]
standard_name = vertically_integrated_y_momentum_flux_due_to_blocking_drag
long_name = integrated y momentum flux from blocking drag
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dusfc_ss]
standard_name = vertically_integrated_x_momentum_flux_due_to_small_scale_gravity_wave_drag
long_name = integrated x momentum flux from small scale gwd
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dvsfc_ss]
standard_name = vertically_integrated_y_momentum_flux_due_to_small_scale_gravity_wave_drag
long_name = integrated y momentum flux from small scale gwd
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dusfc_fd]
standard_name = vertically_integrated_x_momentum_flux_due_to_form_drag
long_name = integrated x momentum flux from form drag
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[dvsfc_fd]
standard_name = vertically_integrated_y_momentum_flux_due_to_form_drag
long_name = integrated y momentum flux from form drag
units = Pa
dimensions = (horizontal_loop_extent)
type = real
kind = kind_phys
intent = out
intent = inout
[slmsk]
standard_name = area_type
long_name = landmask: sea/land/ice=0/1/2
Expand Down

0 comments on commit 235ef96

Please sign in to comment.