Skip to content

Commit

Permalink
address reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattldawson committed Dec 13, 2024
1 parent f82d4c0 commit 3aa9953
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions schemes/musica/musica_ccpp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ subroutine musica_ccpp_run(time_step, temperature, pressure, dry_air_density, co

! Calculate photolysis rate constants using TUV-x
call tuvx_run(temperature, dry_air_density, &
constituents, &
geopotential_height_wrt_surface_at_midpoint, &
geopotential_height_wrt_surface_at_interface, &
surface_geopotential, surface_temperature, &
Expand All @@ -138,10 +139,10 @@ subroutine musica_ccpp_run(time_step, temperature, pressure, dry_air_density, co
extraterrestrial_flux, &
standard_gravitational_acceleration, &
cloud_area_fraction, &
air_pressure_thickness, &
solar_zenith_angle, &
earth_sun_distance, &
constituents, &
air_pressure_thickness, rate_parameters, &
rate_parameters, &
errmsg, errcode)

! Get the molar mass that is set in the call to instantiate()
Expand Down
12 changes: 7 additions & 5 deletions schemes/musica/tuvx/musica_ccpp_tuvx.F90
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ end subroutine tuvx_init

!> Calculates photolysis rate constants for the current model conditions
subroutine tuvx_run(temperature, dry_air_density, &
constituents, &
geopotential_height_wrt_surface_at_midpoint, &
geopotential_height_wrt_surface_at_interface, &
surface_geopotential, surface_temperature, &
Expand All @@ -419,9 +420,10 @@ subroutine tuvx_run(temperature, dry_air_density, &
extraterrestrial_flux, &
standard_gravitational_acceleration, &
cloud_area_fraction, &
solar_zenith_angle, earth_sun_distance, &
constituents, &
air_pressure_thickness, rate_parameters, &
air_pressure_thickness, &
solar_zenith_angle, &
earth_sun_distance, &
rate_parameters, &
errmsg, errcode)
use musica_util, only: error_t
use musica_ccpp_tuvx_height_grid, only: set_height_grid_values, calculate_heights
Expand All @@ -433,6 +435,7 @@ subroutine tuvx_run(temperature, dry_air_density, &

real(kind_phys), intent(in) :: temperature(:,:) ! K (column, layer)
real(kind_phys), intent(in) :: dry_air_density(:,:) ! kg m-3 (column, layer)
real(kind_phys), intent(in) :: constituents(:,:,:) ! various (column, layer, constituent)
real(kind_phys), intent(in) :: geopotential_height_wrt_surface_at_midpoint(:,:) ! m (column, layer)
real(kind_phys), intent(in) :: geopotential_height_wrt_surface_at_interface(:,:) ! m (column, interface)
real(kind_phys), intent(in) :: surface_geopotential(:) ! m2 s-2
Expand All @@ -442,10 +445,9 @@ subroutine tuvx_run(temperature, dry_air_density, &
real(kind_phys), intent(in) :: extraterrestrial_flux(:) ! photons cm-2 s-1 nm-1
real(kind_phys), intent(in) :: standard_gravitational_acceleration ! m s-2
real(kind_phys), intent(in) :: cloud_area_fraction(:,:) ! unitless (column, layer)
real(kind_phys), intent(in) :: air_pressure_thickness(:,:) ! Pa (column, layer)
real(kind_phys), intent(in) :: solar_zenith_angle(:) ! radians
real(kind_phys), intent(in) :: earth_sun_distance ! m
real(kind_phys), intent(in) :: constituents(:,:,:) ! various (column, layer, constituent)
real(kind_phys), intent(in) :: air_pressure_thickness(:,:) ! Pa (column, layer)
real(kind_phys), intent(inout) :: rate_parameters(:,:,:) ! various units (column, layer, reaction)
character(len=512), intent(out) :: errmsg
integer, intent(out) :: errcode
Expand Down

0 comments on commit 3aa9953

Please sign in to comment.