52 USE modi_writesurf_ocean_n
53 USE modi_writesurf_seaice_n
63 CHARACTER(LEN=*),
DIMENSION(:),
INTENT(IN) :: HSELECT
65 TYPE(
ocean_t),
INTENT(INOUT) :: O
69 CHARACTER(LEN=6),
INTENT(IN) :: HPROGRAM
75 INTEGER :: JMTH, INMTH
76 CHARACTER(LEN=2 ) :: YMTH
79 CHARACTER(LEN=12) :: YRECFM
80 CHARACTER(LEN=100):: YCOMMENT
81 REAL(KIND=JPRB) :: ZHOOK_HANDLE
86 IF (
lhook)
CALL dr_hook(
'WRITESURF_SEAFLUX_N',0,zhook_handle)
95 ycomment=
'flag to handle sea ice cover' 96 CALL write_surf(hselect, hprogram,
'HANDLE_SIC',s%LHANDLE_SIC,iresp,ycomment
106 IF(s%LINTERPOL_SST)
THEN 108 inmth=
SIZE(s%XSST_MTH,2)
111 WRITE(ymth,
'(I2)') (jmth-1)
112 yrecfm=
'SST_MTH'//adjustl(ymth(:len_trim(ymth)))
113 ycomment=
'SST at month t'//adjustl(ymth(:len_trim(ymth)))//
' (K)' 114 CALL write_surf(hselect, hprogram,yrecfm,s%XSST_MTH(:,jmth),iresp,hcomment
121 CALL write_surf(hselect, hprogram,yrecfm,s%XSST(:),iresp,hcomment=ycomment
132 CALL write_surf(hselect, hprogram,yrecfm,s%XZ0(:),iresp,hcomment=ycomment
137 IF(s%LINTERPOL_SSS)
THEN 139 inmth=
SIZE(s%XSSS_MTH,2)
142 WRITE(ymth,
'(I2)') (jmth-1)
143 yrecfm=
'SSS_MTH'//adjustl(ymth(:len_trim(ymth)))
144 ycomment=
'Sea Surface Salinity at month t'//adjustl(ymth(:len_trim
' (psu)' 145 CALL write_surf(hselect, hprogram,yrecfm,s%XSSS_MTH(:,jmth),iresp,hcomment
151 ycomment=
'Sea Surface Salinity (psu)' 152 CALL write_surf(hselect, hprogram,yrecfm,s%XSSS(:),iresp,hcomment=ycomment
157 IF(s%CSEA_ALB==
'RS14')
THEN 160 ycomment=
'direct ocean surface albedo (-)' 161 CALL write_surf(hselect, hprogram,yrecfm,s%XDIR_ALB(:),iresp,hcomment=ycomment
164 ycomment=
'diffuse ocean surface albedo (-)' 165 CALL write_surf(hselect, hprogram,yrecfm,s%XSCA_ALB(:),iresp,hcomment=ycomment
176 CALL write_surf(hselect, hprogram,yrecfm,s%TTIME,iresp,hcomment=ycomment
178 IF (
lhook)
CALL dr_hook(
'WRITESURF_SEAFLUX_N',1,zhook_handle)
subroutine writesurf_ocean_n(HSELECT, O, OR, HPROGRAM)
subroutine writesurf_seaice_n(HSELECT, S, HPROGRAM)
subroutine writesurf_seaflux_n(HSELECT, O, OR, S, HPROGRAM)