Skip to content

Commit

Permalink
Merge pull request #2 from gold2718/update_dms_exchange
Browse files Browse the repository at this point in the history
Fix dms_from_ocn usage
  • Loading branch information
mvertens authored Sep 19, 2024
2 parents 472fb90 + b533b20 commit 204fbfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/aero_model.F90
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ module aero_model
use oslo_aero_aerodry_tables, only: initdry
use oslo_aero_aerocom_tables, only: initaeropt
use oslo_aero_logn_tables, only: initlogn
use atm_import_export, only: dms_from_ocn

implicit none
private
Expand All @@ -79,8 +78,10 @@ module aero_model

! Misc private data
integer :: pblh_idx= 0
integer :: ndx_h2so4, ndx_soa_lv, ndx_soa_sv ! for surf_area_dens
logical :: convproc_do_aer
integer :: ndx_h2so4 = -1 ! for surf_area_dens
integer :: ndx_soa_lv = -1 ! for surf_area_dens
integer :: ndx_soa_sv = -1 ! for surf_area_dens
logical :: convproc_do_aer = .false.

! Namelist variables
real(r8) :: sol_facti_cloud_borne = 1._r8
Expand Down Expand Up @@ -580,6 +581,7 @@ end subroutine aero_model_gasaerexch

!=============================================================================
subroutine aero_model_emissions( state, cam_in )
use phys_control, only: dms_from_ocn

! Arguments:
type(physics_state), intent(in) :: state ! Physics state variables
Expand All @@ -593,7 +595,7 @@ subroutine aero_model_emissions( state, cam_in )
call oslo_aero_seasalt_emis(state%ncol, state%lchnk, &
state%u(:,pver), state%v(:,pver), state%zm(:,pver), &
cam_in%ocnfrac, cam_in%icefrac, cam_in%sst, cam_in%cflx)
endif
end if

! Pick up correct DMS emissions (replace values from file if requested)
! If DMS is sent from the ocean then cflx is updated in the nuopc cap
Expand Down
1 change: 0 additions & 1 deletion src/oslo_aero_ocean.F90
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module oslo_aero_ocean
use physics_types, only : physics_state
use physics_buffer, only : physics_buffer_desc
use tracer_data, only : trfld, trfile, trcdata_init, advance_trcdata
use atm_import_export, only : brf_from_ocn
!
use oslo_aero_control, only: oslo_aero_getopts

Expand Down

0 comments on commit 204fbfa

Please sign in to comment.