Skip to content

Commit bb91f34

Browse files
Add output of water category.
Fixes ufs-community#709.
1 parent d99116c commit bb91f34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sorc/sfc_climo_gen.fd/interp2.F90

+10
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ subroutine interp2(localpet, input_file)
3030
integer :: isrctermprocessing
3131
integer :: category, num_categories
3232

33+
!cggg need to read this from file.
34+
integer, parameter :: water_category = 17
35+
3336
integer(esmf_kind_i4), allocatable :: mask_mdl_one_tile(:,:)
3437
integer(esmf_kind_i4), pointer :: unmapped_ptr(:)
3538

@@ -192,6 +195,13 @@ subroutine interp2(localpet, input_file)
192195
enddo
193196
call search2 (data_mdl_one_tile, mask_mdl_one_tile, i_mdl, j_mdl, num_categories, tile, field_names(1))
194197
print*,'after regrid ',data_mdl_one_tile(i_mdl/2,j_mdl/2,:)
198+
do j = 1, j_mdl
199+
do i = 1, i_mdl
200+
if (mask_mdl_one_tile(i,j) == 0) then
201+
data_mdl_one_tile(i,j,water_category) = 1.0
202+
endif
203+
enddo
204+
enddo
195205
dom_cat_mdl_one_tile = 0.0
196206
dom_cat_mdl_one_tile = maxloc(data_mdl_one_tile,dim=3)
197207
call output2 (data_mdl_one_tile, dom_cat_mdl_one_tile, lat_mdl_one_tile, lon_mdl_one_tile, i_mdl, j_mdl, num_categories, tile)

0 commit comments

Comments
 (0)