Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise error for misconfigured field_tables #132

Merged
merged 3 commits into from
Jan 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions FV3/gfsphysics/GFS_layer/GFS_typedefs.F90
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module GFS_typedefs
use h2o_def, only: levh2o, h2o_coeff
use aerclm_def, only: ntrcaer, ntrcaerm
#endif
use mpp_mod, only: mpp_error, FATAL


implicit none

Expand Down Expand Up @@ -3706,6 +3708,10 @@ subroutine control_initialize (Model, nlunit, fn_nml, me, master, &
endif
endif

if (Model%satmedmf .and. Model%ntke .lt. 0) then
call mpp_error(FATAL, 'GFS_typedefs::control_initialize An sgs_tke tracer must be defined in the field_table if gfs_physics_nml.satmedmf is true.')
endif

! -- setup aerosol scavenging factors
allocate(Model%fscav(Model%ntchm))
if (Model%ntchm > 0) then
Expand Down