Skip to content

Commit

Permalink
global_cycle - Update version of sfcsub.F (#950)
Browse files Browse the repository at this point in the history
Point to latest version of sfcsub.F from the ccpp-physics
repository. This version contains a bug fix in the interpolation
of GLDAS data.  This sfcsub.F version also updates soil color.
This field is not yet processed by global_cycle, so add a dummy
soil color argument.

Fixes #933.
  • Loading branch information
GeorgeGayno-NOAA authored May 28, 2024
1 parent 77622d0 commit c6e032b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ccpp-physics
Submodule ccpp-physics updated 445 files
2 changes: 1 addition & 1 deletion sorc/global_cycle.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set(lib_src
machine.f90
num_parthds.f90
../../ccpp-physics/physics/sfcsub.F
../../ccpp-physics/physics/Interstitials/UFS_SCM_NEPTUNE/sfcsub.F
read_write_data.f90
utils.F90
land_increments.f90)
Expand Down
6 changes: 4 additions & 2 deletions sorc/global_cycle.fd/cycle.f90
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ SUBROUTINE SFCDRV(LUGB, IDIM,JDIM,LENSFC,LSOIL,DELTSFC, &
REAL :: VMNFCS(LENSFC), T2M(LENSFC)
REAL :: Q2M(LENSFC), SLPFCS(LENSFC)
REAL :: ABSFCS(LENSFC), OROG_UF(LENSFC)
REAL :: USTAR(LENSFC)
REAL :: USTAR(LENSFC), SOCFCS(LENSFC)
REAL :: FMM(LENSFC), FHH(LENSFC)
REAL :: RLA(LENSFC), RLO(LENSFC)
REAL(KIND=4) :: ZSOIL(LSOIL)
Expand Down Expand Up @@ -616,6 +616,8 @@ SUBROUTINE SFCDRV(LUGB, IDIM,JDIM,LENSFC,LSOIL,DELTSFC, &
endif
ENDDO

SOCFCS=0 ! Soil color. Not used yet.

num_threads = num_parthds()
PRINT*
PRINT*,"CALL SFCCYCLE TO UPDATE SURFACE FIELDS."
Expand All @@ -626,7 +628,7 @@ SUBROUTINE SFCDRV(LUGB, IDIM,JDIM,LENSFC,LSOIL,DELTSFC, &
VMNFCS,VMXFCS,SLPFCS,ABSFCS, &
TSFFCS,SWEFCS,ZORFCS,ALBFCS,TG3FCS, &
CNPFCS,SMCFCS,STCFCS,SLIFCS,AISFCS, &
VEGFCS,VETFCS,SOTFCS,ALFFCS, &
VEGFCS,VETFCS,SOTFCS,SOCFCS,ALFFCS, &
CVFCS,CVBFCS,CVTFCS,MYRANK,num_threads, NLUNIT, &
SZ_NML, INPUT_NML_FILE, &
min_ice, &
Expand Down

0 comments on commit c6e032b

Please sign in to comment.