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

Quick fix for CESM levels out-of-bound issue (LWEPAR) #15

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 7 additions & 1 deletion src/Core/cldj_cmn_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ MODULE CLDJ_CMN_MOD
integer, parameter :: L2_ = L_+2 ! L_+2 = total # of layer edges counting top (TAU=0)
#endif

#ifdef MODEL_CESM
! # layers that have clouds (LWEPAR < L_)
integer, parameter :: LWEPAR = 34
integer, parameter :: LWEPAR = 34
#else
! # layers that have clouds (LWEPAR < L_)
! FIXME (hplin): This should be a run-time parameter which also could vary by compset.
integer, parameter :: LWEPAR = 22 ! ~100 hPa for CESM 32-levels
#endif

!------------------------------------------------------------------------------
! Additional parameters
Expand Down