Skip to content

Commit

Permalink
Set wv_idx in air_composition
Browse files Browse the repository at this point in the history
total_hours_in_debugging_one_line = 6
  • Loading branch information
jimmielin committed Oct 25, 2024
1 parent 38fdbb2 commit 240ef54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/air_composition.F90
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ subroutine air_composition_init()
!
!************************************************************************
!
! add prognostic components of dry air
! add prognostic components of air
!
!************************************************************************
!
Expand Down Expand Up @@ -313,6 +313,7 @@ subroutine air_composition_init()
!
case(wv_stdname) !water_vapor_mixing_ratio_wrt_moist_air_and_condensed_water
call air_species_info(wv_stdname, ix, mw)
wv_idx = ix ! set water species index for use in get_hydrostatic_energy
thermodynamic_active_species_idx(icnst) = ix
thermodynamic_active_species_cp (icnst) = cpwv
thermodynamic_active_species_cv (icnst) = cv3 / mw
Expand Down

0 comments on commit 240ef54

Please sign in to comment.