Skip to content

Commit

Permalink
Add variable for the convect_dp_gw net filepath to be read from namel…
Browse files Browse the repository at this point in the history
…ist.
  • Loading branch information
jatkinson1000 committed Jun 17, 2024
1 parent c2c9a06 commit 70c9a96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/physics/cam/gw_drag.F90
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ module gw_drag
logical :: gw_top_taper=.false.
real(r8), pointer :: vramp(:)=>null()

! Switch for using ML GW parameterisation for deep convection source
! Variables for ML GW parameterisation for deep convection
character(len=16) :: gw_convect_dp_ml = "off"
character(len=132) :: gw_convect_dp_ml_net

!==========================================================================
contains
Expand Down Expand Up @@ -236,7 +237,7 @@ subroutine gw_drag_readnl(nlfile)
gw_oro_south_fac, gw_limit_tau_without_eff, &
gw_lndscl_sgh, gw_prndl, gw_apply_tndmax, gw_qbo_hdepth_scaling, &
gw_top_taper, front_gaussian_width, &
gw_convect_dp_ml
gw_convect_dp_ml, gw_convect_dp_ml_net
!----------------------------------------------------------------------

if (use_simple_phys) return
Expand Down Expand Up @@ -343,6 +344,9 @@ subroutine gw_drag_readnl(nlfile)
call mpi_bcast(gw_convect_dp_ml, len(gw_convect_dp_ml), mpi_character, mstrid, mpicom, ierr)
if (ierr /= 0) call endrun(sub//": FATAL: mpi_bcast: gw_convect_dp_ml")

call mpi_bcast(gw_convect_dp_ml_net, len(gw_convect_dp_ml_net), mpi_character, mstrid, mpicom, ierr)
if (ierr /= 0) call endrun(sub//": FATAL: mpi_bcast: gw_convect_dp_ml_net")

! Check if fcrit2 was set.
call shr_assert(fcrit2 /= unset_r8, &
"gw_drag_readnl: fcrit2 must be set via the namelist."// &
Expand Down

0 comments on commit 70c9a96

Please sign in to comment.