Skip to content

Commit

Permalink
LILAC needs to read and handle the drv_flds_in file as dust emission …
Browse files Browse the repository at this point in the history
…settings are required and it's namelist must be read
  • Loading branch information
ekluzek committed Jul 29, 2024
1 parent e438a90 commit 0f9fee7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cime_config/SystemTests/lilacsmoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

logger = logging.getLogger(__name__)

_LILAC_RUNTIME_FILES = ["lnd_in", "lnd_modelio.nml", "lilac_in"]
_LILAC_RUNTIME_FILES = ["lnd_in", "lnd_modelio.nml", "drv_flds_in", "lilac_in"]


class LILACSMOKE(SystemTestsCommon):
Expand Down
1 change: 0 additions & 1 deletion python/ctsm/lilac_make_runtime_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def buildnml(cime_path, rundir):
# remove temporary files in rundir
os.remove(os.path.join(rundir, "config_cache.xml"))
os.remove(os.path.join(rundir, "env_lilac.xml"))
os.remove(os.path.join(rundir, "drv_flds_in"))
os.remove(infile)


Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ add_subdirectory(${CLM_ROOT}/src/init_interp/test clm_init_interp_test)
add_subdirectory(${CLM_ROOT}/src/self_tests/test clm_self_tests_test)

# Add driver unit test directories
# (these should be moved to the appropriate submodule)
add_subdirectory(${CLM_ROOT}/src/drv_test drv_test)

5 changes: 5 additions & 0 deletions src/cpl/lilac/lnd_comp_esmf.F90
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ subroutine lnd_init(comp, import_state, export_state, clock, rc)
use ESMF , only : ESMF_StateAdd
use ESMF , only : operator(==)

use shr_dust_emis_mod , only : shr_dust_emis_readnl

! input/output variables
type(ESMF_GridComp) :: comp ! CLM gridded component
type(ESMF_State) :: import_state ! CLM import state
Expand Down Expand Up @@ -270,6 +272,9 @@ subroutine lnd_init(comp, import_state, export_state, clock, rc)
! Fill in the value for model_meshfile in lnd_comp_shr used by the stream routines in share_esmf/
model_meshfile = trim(lnd_mesh_filename)

! Reading in the drv_flds_in namelist is required for dust emissions
call shr_dust_emis_readnl( mpicom, "drv_flds_in")

!----------------------
! Obtain caseid and start type from attributes in import state
!----------------------
Expand Down

0 comments on commit 0f9fee7

Please sign in to comment.