Skip to content

Commit

Permalink
physics/sfcsub.F: move message into sfccyc_module
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Sep 2, 2020
1 parent cc1d5bd commit 922c05f
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions physics/sfcsub.F
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ module sfccyc_module
integer :: veg_type_landice
integer :: soil_type_landice
!
!
contains

function message(prefix,index)
implicit none
character(len=*), intent(in) :: prefix
integer, intent(in) :: index
character(len=10) :: message
!
! probably need to implement a check that len(prefix) + '-' + length of
! string representation of index <= len(message)
write(message,fmt='(a,a,i0)') trim(prefix), '-', index
end function message

end module sfccyc_module

!>\ingroup mod_GFS_phys_time_vary
Expand Down Expand Up @@ -8608,16 +8622,4 @@ subroutine snodpth2(glacir,snwmax,snoanl, len, me)
return
end

!>\ingroup mod_sfcsub
function message(prefix,index)
implicit none
character(len=*), intent(in) :: prefix
integer, intent(in) :: index
character(len=10) :: message
!
! probably need to implement a check that len(prefix) + '-' + length of
! string representation of index <= len(message)
write(message,fmt='(a,a,i0)') trim(prefix), '-', index
end function message

!>@}

0 comments on commit 922c05f

Please sign in to comment.