Skip to content

Commit

Permalink
Fix uninitialized mask values
Browse files Browse the repository at this point in the history
  • Loading branch information
billsacks committed Sep 6, 2024
1 parent b231f79 commit e2dc0ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/mksurfdata_esmf/src/mksoiltexMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e2dc0ae

Please sign in to comment.