Skip to content

Commit de85e16

Browse files
authored
Merge pull request #1675 from jvgeiger/fix/disable_wrf_cpl
Fix to compile LIS with "WRF coupling: Off"
2 parents d2a7de1 + 90cf604 commit de85e16

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

lis/core/LIS_surfaceModelMod.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
! All Rights Reserved.
99
!-------------------------END NOTICE -- DO NOT EDIT-----------------------
1010
#include "LIS_misc.h"
11+
#include "LIS_plugins.h"
1112
! Macros for tracing - Requires ESMF 7_1_0+
1213
#ifdef ESMF_TRACE
1314
#define TRACE_ENTER(region) call ESMF_TraceRegionEnter(region)
@@ -1171,12 +1172,15 @@ end subroutine LIS_surfaceModel_reset
11711172
!
11721173
! !INTERFACE:
11731174
subroutine surfaceModel_setexport_noesmf(n)
1175+
#if (defined RM_WRF_COUPLING)
11741176
! !USES:
11751177
use LIS_LMLCMod
11761178
use LISWRFGridCompMod, only : LISWRF_export
11771179
use LIS_historyMod, only : LIS_tile2grid
1180+
#endif
11781181
! !ARGUMENTS:
11791182
integer, intent(in) :: n
1183+
#if (defined RM_WRF_COUPLING)
11801184
! !DESCRIPTION:
11811185
!
11821186
!EOP
@@ -1237,6 +1241,7 @@ subroutine surfaceModel_setexport_noesmf(n)
12371241
call LIS_tile2grid(n,LISWRF_export(n)%xland,LISWRF_export(n)%xland_t)
12381242
TRACE_EXIT("sf_setexp")
12391243

1244+
#endif
12401245
end subroutine surfaceModel_setexport_noesmf
12411246

12421247
end module LIS_surfaceModelMod

lis/make/default.cfg

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,12 +1207,13 @@ path: surfacemodels/land/clm2,
12071207
surfacemodels/land/clm2/main,
12081208
surfacemodels/land/clm2/biogeophys,
12091209
surfacemodels/land/clm2/ecosysdyn,
1210-
surfacemodels/land/clm2/csm_share,
1211-
surfacemodels/land/clm2/cpl_wrf_noesmf
1212-
dependent_comps: virtual_da
1210+
surfacemodels/land/clm2/csm_share
1211+
dependent_comps: virtual_da,
1212+
WRF coupling
12131213
virtual_da path: surfacemodels/land/clm2/da_lst,
12141214
surfacemodels/land/clm2/da_snow,
12151215
surfacemodels/land/clm2/da_soilm
1216+
WRF coupling path: surfacemodels/land/clm2/cpl_wrf_noesmf
12161217

12171218
[VIC.4.1.1]
12181219
enabled: True
@@ -1684,8 +1685,9 @@ virtual_da path: surfacemodels/land/jules.5.x/da_soilm,
16841685
enabled: True
16851686
macro: SM_CABLE
16861687
path: surfacemodels/land/cable,
1687-
surfacemodels/land/cable/physics,
1688-
surfacemodels/land/cable/cpl_wrf_noesmf
1688+
surfacemodels/land/cable/physics
1689+
dependent_comps: WRF coupling
1690+
WRF coupling path: surfacemodels/land/cable/cpl_wrf_noesmf
16891691

16901692
[FASST]
16911693
enabled: False

0 commit comments

Comments
 (0)