Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
billsacks committed Sep 7, 2024
1 parent 10319de commit 0c68f2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/mksurfdata_esmf/src/mksoiltexMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ subroutine mksoiltex(file_mesh_i, file_mapunit_i, file_lookup_i, mesh_o, pioid_o

! Determine mapunit_value_max (set it as a module variable so that it can be
! accessible to gen_dominant_mapunit) - this is needed in the dynamic mask routine
!
! Note that dataptr (obtained from the input field) contains just a subset of the
! source data, based on the source data decomposition. So we need an mpi_allreduce to
! determine the global maximum value of mapunit.
mapunit_value_max_local = maxval(dataptr)
call mpi_allreduce(mapunit_value_max_local, mapunit_value_max, 1, MPI_INTEGER, MPI_MAX, mpicom, rcode)

Expand Down

0 comments on commit 0c68f2e

Please sign in to comment.