60 CHARACTER(LEN=*),
DIMENSION(:),
INTENT(IN) :: HSELECT
63 TYPE(
teb_t),
INTENT(INOUT) :: T
65 INTEGER,
INTENT(IN) :: KTIME
71 CHARACTER(LEN=6),
INTENT(IN) :: HPROGRAM
77 CHARACTER(LEN=12) :: YRECFM
78 CHARACTER(LEN=100):: YCOMMENT
79 CHARACTER(LEN=4 ) :: YLVL
81 REAL,
DIMENSION(:),
ALLOCATABLE :: ZWORK
84 REAL(KIND=JPRB) :: ZHOOK_HANDLE
88 IF (
lhook)
CALL dr_hook(
'WRITESURF_PGD_TEB_GARDEN_N',0,zhook_handle)
94 CALL write_surf(hselect, hprogram,yrecfm,io%CISBA,iresp,hcomment=ycomment
98 IF(io%CISBA==
'DIF')
THEN 99 DO jl=1,io%NGROUND_LAYER
100 WRITE(ylvl,
'(I4)') jl
101 yrecfm=
'GD_SGRID'//adjustl(ylvl(:len_trim(ylvl)))
102 ycomment=
'Depth of TEB Garden soilgrid layer '//adjustl(ylvl(:len_trim
103 CALL write_surf(hselect, hprogram,yrecfm,io%XSOILGRID(jl),iresp,hcomment
111 CALL write_surf(hselect, hprogram,yrecfm,io%NGROUND_LAYER,iresp,hcomment
117 CALL write_surf(hselect, hprogram,yrecfm,ktime,iresp,hcomment=ycomment)
122 ycomment=
'X_Y_GD_CLAY' 123 CALL write_surf(hselect,hprogram,yrecfm,k%XCLAY(:,1),iresp,hcomment=ycomment
128 ycomment=
'X_Y_GD_SAND' 129 CALL write_surf(hselect,hprogram,yrecfm,k%XSAND(:,1),iresp,hcomment=ycomment
134 ycomment=
'X_Y_GD_RUNOFFB' 135 CALL write_surf(hselect,hprogram,yrecfm,k%XRUNOFFB,iresp,hcomment=ycomment
140 ycomment=
'X_Y_GD_WDRAIN' 141 CALL write_surf(hselect,hprogram,yrecfm,k%XWDRAIN,iresp,hcomment=ycomment
143 IF (
lhook)
CALL dr_hook(
'WRITESURF_PGD_TEB_GARDEN_N',1,zhook_handle)
subroutine writesurf_pgd_teb_garden_n(HSELECT, TOP, T, KTIME, IO,
integer, parameter nundef