From e2dc0aec130883e336861bf1db02af7b064895a7 Mon Sep 17 00:00:00 2001 From: Bill Sacks Date: Fri, 6 Sep 2024 11:12:59 -0600 Subject: [PATCH] Fix uninitialized mask values --- tools/mksurfdata_esmf/src/mksoiltexMod.F90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mksurfdata_esmf/src/mksoiltexMod.F90 b/tools/mksurfdata_esmf/src/mksoiltexMod.F90 index fb8396f344..398bbaf51d 100644 --- a/tools/mksurfdata_esmf/src/mksoiltexMod.F90 +++ b/tools/mksurfdata_esmf/src/mksoiltexMod.F90 @@ -165,6 +165,8 @@ subroutine mksoiltex(file_mesh_i, file_mapunit_i, file_lookup_i, mesh_o, pioid_o do ni = 1,ns_i if (mapunit_i(ni) == 0.) then mask_i(ni) = 0 + else + mask_i(ni) = 1 end if end do call ESMF_MeshSet(mesh_i, elementMask=mask_i, rc=rc)