Skip to content

Commit

Permalink
updated parameter check to ignore SP
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed May 22, 2024
1 parent 37f0245 commit a997af5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main/EDPftvarcon.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2237,8 +2237,11 @@ subroutine FatesCheckParams(is_master)


! if nocomp is enabled, check to make sure the max number of nocomp PFTs per land use is
! less than or equal to the max number of patches per land use.
if ( hlm_use_nocomp .eq. itrue ) then
! less than or equal to the max number of patches per land use. (unless this is an
! SP run, then all PFTS are tracked on the primary LU and the others are allocated
! zero patch space

if ( hlm_use_nocomp .eq. itrue .and. hlm_use_sp.eq.ifalse) then
do i_lu = 1, n_landuse_cats
if (max_nocomp_pfts_by_landuse(i_lu) .gt. maxpatches_by_landuse(i_lu)) then
write(fates_log(),*) 'The max number of nocomp PFTs must all be less than or equal to the number of patches, for a given land use type'
Expand Down

0 comments on commit a997af5

Please sign in to comment.