Skip to content

Commit

Permalink
add endrun call during initialization if Meier2022 is run with fates
Browse files Browse the repository at this point in the history
  • Loading branch information
glemieux committed Jan 14, 2025
1 parent dbb6192 commit 43407e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/clm_initializeMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ subroutine initialize1(dtime)
use clm_varpar , only: clm_varpar_init
use clm_varcon , only: clm_varcon_init
use landunit_varcon , only: landunit_varcon_init
use clm_varctl , only: fsurdat, version
use clm_varctl , only: fsurdat, version, z0param_method
use surfrdMod , only: surfrd_get_num_patches, surfrd_get_nlevurb, surfrd_compat_check
use controlMod , only: control_init, control_print, NLFilename
use ncdio_pio , only: ncd_pio_init
Expand Down Expand Up @@ -108,6 +108,10 @@ subroutine initialize1(dtime)
! number of patches per column. We still use numcft from the surface
! file though...
if(use_fates) then
if (z0param_method == 'Meier2022') then
call endrun(msg='ERROR clm_initializeMod: '//&
'FATES is not compatible with Meier2022')
end if
call CLMFatesGlobals1(actual_numpft, actual_numcft, actual_maxsoil_patches)
end if

Expand Down

0 comments on commit 43407e1

Please sign in to comment.