Skip to content

Commit a53e911

Browse files
committed
refactoring...
1 parent 462804a commit a53e911

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

GEOS_LdasGridComp.F90

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ subroutine SetServices(gc, rc)
170170
with_landice = .false.
171171
with_land = .false.
172172
! with_lake = .false.
173-
do i = 1, size(tile_types)
174-
if (tile_types(i) == MAPL_LANDICE) with_landice = .true.
175-
if (tile_types(i) == MAPL_LAND) with_land = .true.
176-
! if (tile_types(i) == MAPL_LAKE) with_lake = .true.
177-
enddo
173+
174+
if (any(tile_types == MAPL_LANDICE)) with_landice = .true.
175+
if (any(tile_types == MAPL_LAND )) with_land = .true.
176+
! if (any(tile_types == MAPL_LAKE )) with_lake = .true.
178177

179178
call MAPL_GetResource ( MAPL, LAND_ASSIM_STR, Label="LAND_ASSIM:", DEFAULT="NO", RC=STATUS)
180179
VERIFY_(STATUS)

0 commit comments

Comments
 (0)