Skip to content

Commit 8ea7b40

Browse files
committed
Merge branch 'support/lisf-public-7.5'
2 parents 67fdd15 + de85e16 commit 8ea7b40

File tree

11 files changed

+64
-23
lines changed

11 files changed

+64
-23
lines changed

ldt/configs/ldt.config.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ Soil texture spatial transform: none
16331633

16341634
`Soil texture fill value for Antarctica:` indicates which soil texture value to be used if an arbitrary value fill is needed south of 60S. If not specified, value of `Soil texture fill value:` will be used.
16351635

1636-
`Soil texture force exclusion of water points during fill:` indicates whether to force exclusion of water points when filling soil texture. Required when using STATSGOFAO south of 60S (texture is set to all water) and multiple surface model types are used.
1636+
`Soil texture force exclusion of water points during fill:` indicates whether to force exclusion of water points when filling soil texture. Required when using STATSGOFAO, south of 60S (i.e., texture is set to all water), and multiple surface model types (e.g., LSM and Openwater) are used.
16371637

16381638
[cols="<,<",]
16391639
|===
@@ -1759,7 +1759,7 @@ Curvature number of bands: 1
17591759

17601760
Topography maps
17611761

1762-
`Elevation map:` specifies the elevation of the LIS grid. If the elevation map type selected is SRTM_Native, then the elevation file entry is actually just the directory path, which contains the tiled SRTM elevation files.
1762+
`Elevation map:` specifies the elevation of the LIS grid. If the elevation map type selected is SRTM_Native, then the elevation file entry is actually just the directory path, which contains the tiled SRTM elevation files. Note: The SRTM tiles only go to 60deg S, and south of that the associated SRTM reader can fill in with GTOPO30 Antarctica tile files.
17631763

17641764
`Slope map:` specifies the slope of the LIS grid. If the slope map type selected is SRTM_Native, then the file entry is actually just the directory path, which contains the tiled SRTM elevation files.
17651765

ldt/core/LDT_soilsMod.F90

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ subroutine soils_init_LIS()
479479
enddo
480480

481481
!- Soil texture:
482-
if( check_data) then
482+
if( check_data ) then
483483

484484
do n=1,LDT_rc%nnest
485485
if( INDEX(LDT_LSMparam_struc(n)%texture%source,"STATSGO") > 0 ) then
@@ -537,9 +537,9 @@ subroutine soils_init_LIS()
537537
end if
538538

539539
! EMK...Allow option to force exclusion of water points when
540-
! filling soil texture. Necessary when using STATSGOFAO south of
541-
! 60S (texture set to all water) and multiple surface model types
542-
! are used.
540+
! filling soil texture. Necessary when using STATSGOFAO, south of
541+
! 60S (i.e., texture set to all water) and multiple surface model types
542+
! (e.g., LSM and Openwater) are used.
543543
! If option not specified, set to false.
544544

545545
call ESMF_ConfigFindLabel(LDT_config, &
@@ -549,7 +549,17 @@ subroutine soils_init_LIS()
549549
call ESMF_ConfigGetAttribute(LDT_config, soiltext%force_exclude_water, &
550550
label="Soil texture force exclusion of water points during fill:",rc=rc)
551551
else
552-
soiltext%force_exclude_water = .false.
552+
if(( INDEX(LDT_LSMparam_struc(1)%texture%source,"STATSGO") > 0 ) .and. &
553+
( LDT_rc%nsf_model_types > 1 )) then
554+
write(LDT_logunit,*) "[INFO] Setting 'Soil texture force exclusion of water points during fill:'"
555+
write(LDT_logunit,*) " to '.true.', since STATSGOFAO and surface model types > 1 in ldt.config file."
556+
soiltext%force_exclude_water = .true.
557+
else
558+
write(LDT_logunit,*) "[INFO] Setting 'Soil texture force exclusion of water points during fill:'"
559+
write(LDT_logunit,*) " to '.false.', since it is not specified in the ldt.config file and "
560+
write(LDT_logunit,*) " STATSGOFAO is not present nor surface model types > 1."
561+
soiltext%force_exclude_water = .false.
562+
endif
553563
end if
554564

555565
elseif( soiltext%filltype == "none" ) then
@@ -1239,9 +1249,9 @@ subroutine soils_init_LISHydro(flag)
12391249
end if
12401250

12411251
! EMK...Allow option to force exclusion of water points when
1242-
! filling soil texture. Necessary when using STATSGOFAO south of
1243-
! 60S (texture set to all water) and multiple surface model types
1244-
! are used.
1252+
! filling soil texture. Necessary when using STATSGOFAO, south of
1253+
! 60S (i.e., texture set to all water) and multiple surface model types
1254+
! (e.g., LSM and Openwater) are used.
12451255
! If option not specified, set to false.
12461256

12471257
call ESMF_ConfigFindLabel(LDT_config, &
@@ -1251,7 +1261,17 @@ subroutine soils_init_LISHydro(flag)
12511261
call ESMF_ConfigGetAttribute(LDT_config, soiltext%force_exclude_water, &
12521262
label="Soil texture force exclusion of water points during fill:",rc=rc)
12531263
else
1254-
soiltext%force_exclude_water = .false.
1264+
if(( INDEX(LDT_LSMparam_struc(1)%texture%source,"STATSGO") > 0 ) .and. &
1265+
( LDT_rc%nsf_model_types > 1 )) then
1266+
write(LDT_logunit,*) "[INFO] Setting 'Soil texture force exclusion of water points during fill:'"
1267+
write(LDT_logunit,*) " to '.true.', since STATSGOFAO and surface model types > 1 in ldt.config file."
1268+
soiltext%force_exclude_water = .true.
1269+
else
1270+
write(LDT_logunit,*) "[INFO] Setting 'Soil texture force exclusion of water points during fill:'"
1271+
write(LDT_logunit,*) " to '.false.', since it is not specified in the ldt.config file and "
1272+
write(LDT_logunit,*) " STATSGOFAO is not present nor surface model types > 1."
1273+
soiltext%force_exclude_water = .false.
1274+
endif
12551275
end if
12561276

12571277
elseif( soiltext%filltype == "none" ) then

ldt/params/topo/read_SRTM_Native_aspect.F90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ subroutine read_SRTM_Native_aspect( n, num_bins, fgrd, aspectave )
4141
! This subroutine retrieves static elevation data from the SRTM source
4242
! and reprojects it to the latlon projection.
4343
!
44+
! NOTE: SRTM "Native" ~1km files do not include areas south of 60degS.
45+
! GTOPO30 elevation tiles can be read in, since they include points
46+
! south of 60degS (Antarctica).
47+
!
4448
! Source information:
4549
! http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/
4650
!

ldt/params/topo/read_SRTM_Native_elev.F90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ subroutine read_SRTM_Native_elev( n, num_bins, fgrd, elevave )
4040
! This subroutine retrieves static elevation data from the SRTM source
4141
! and reprojects it to the latlon projection.
4242
!
43+
! NOTE: SRTM "Native" ~1km files do not include areas south of 60degS.
44+
! GTOPO30 elevation tiles can be read in, since they include points
45+
! south of 60degS (Antarctica).
46+
!
4347
! Source information:
4448
! http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/
4549
!

ldt/params/topo/read_SRTM_Native_slope.F90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ subroutine read_SRTM_Native_slope( n, num_bins, fgrd, slopeave )
4141
! This subroutine retrieves static elevation data from the SRTM source
4242
! and reprojects it to the latlon projection.
4343
!
44+
! NOTE: SRTM "Native" ~1km files do not include areas south of 60degS.
45+
! GTOPO30 elevation tiles can be read in, since they include points
46+
! south of 60degS (Antarctica).
47+
!
4448
! Source information:
4549
! http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/
4650
!

lis/core/LIS_domainMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,7 @@ subroutine readDomainInput()
29792979
deallocate(locallon)
29802980

29812981
else
2982-
write(LIS_logunit,*) '[ERR] ',LIS_rc%paramfile(n), ' does not exist'
2982+
write(LIS_logunit,*) '[ERR] ',trim(LIS_rc%paramfile(n)), ' does not exist'
29832983
write(LIS_logunit,*) '[ERR] program stopping ...'
29842984
call LIS_endrun
29852985
endif

lis/core/LIS_historyMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7295,7 +7295,7 @@ subroutine writeroutingvar_netcdf_real(ftn,ftn_stats, n, var,varid, mvar,&
72957295
var1_ens(i,m) = -9999.0
72967296
else
72977297
var1_ens(i,m) = &
7298-
var(t)*LIS_domain(n)%tile(t)%fgrd
7298+
var(t)*LIS_routing(n)%tile(t)%fgrd
72997299
endif
73007300
enddo
73017301
enddo

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
@@ -1215,12 +1215,13 @@ path: surfacemodels/land/clm2,
12151215
surfacemodels/land/clm2/main,
12161216
surfacemodels/land/clm2/biogeophys,
12171217
surfacemodels/land/clm2/ecosysdyn,
1218-
surfacemodels/land/clm2/csm_share,
1219-
surfacemodels/land/clm2/cpl_wrf_noesmf
1220-
dependent_comps: virtual_da
1218+
surfacemodels/land/clm2/csm_share
1219+
dependent_comps: virtual_da,
1220+
WRF coupling
12211221
virtual_da path: surfacemodels/land/clm2/da_lst,
12221222
surfacemodels/land/clm2/da_snow,
12231223
surfacemodels/land/clm2/da_soilm
1224+
WRF coupling path: surfacemodels/land/clm2/cpl_wrf_noesmf
12241225

12251226
[VIC.4.1.1]
12261227
enabled: True
@@ -1692,8 +1693,9 @@ virtual_da path: surfacemodels/land/jules.5.x/da_soilm,
16921693
enabled: True
16931694
macro: SM_CABLE
16941695
path: surfacemodels/land/cable,
1695-
surfacemodels/land/cable/physics,
1696-
surfacemodels/land/cable/cpl_wrf_noesmf
1696+
surfacemodels/land/cable/physics
1697+
dependent_comps: WRF coupling
1698+
WRF coupling path: surfacemodels/land/cable/cpl_wrf_noesmf
16971699

16981700
[FASST]
16991701
enabled: False

lis/metforcing/genMetForc/get_metForcGenerated.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ subroutine get_metForcGenerated(n, findex)
142142
LIS_rc%rstflag(n) == 1 ) then
143143
LIS_rc%rstflag(n) = 0
144144
retrieve_file2 = .true.
145-
write(LIS_logunit,*)" [ERR] Currently Forcing 1 File is NOT opened in first timestep ..."
145+
write(LIS_logunit,*)" [INFO] Forcing 1 file is NOT opened in first timestep ..."
146146
endif
147147

148148
!- Retrieve LDT-generated Forcing File 2:

0 commit comments

Comments
 (0)