96 #if ! defined in_surfex
108 CHARACTER(LEN=*),
INTENT(IN) :: &
110 REAL,
DIMENSION(:,:),
INTENT(in) :: &
112 REAL,
DIMENSION(:,:),
OPTIONAL,
INTENT(in) :: &
119 REAL(wp),
DIMENSION(:,:),
ALLOCATABLE :: &
124 ix =
SIZE( pfield,1 )
125 iy =
SIZE( pfield,2 )
127 IF ((ix == 1) .AND. (iy == 1 ))
THEN
128 #if ! defined in_surfex
129 CALL iom_put(hnam,pfield(1,1))
131 print*,
"Surfex cannot yet iom_put ",hnam
134 IF ((ix == nx) .AND. (iy == ny ))
THEN
135 ALLOCATE( zwork2(ix,iy))
136 IF ( present(pwgt) )
THEN
141 WHERE( pwgt(:,:)>0. .AND. pfield(:,:)<xbig20 )
142 zwork2(:,:) = pfield(:,:) / pwgt(:,:)
147 zwork2(:,:) = pfield(:,:)
150 #if ! defined in_surfex
151 CALL iom_put(hnam,zwork2)
153 print*,
"Surfex cannot yet iom_put ",hnam
157 write(*,*)
'Gelato cannot use IOserver for sizes : ', ix, iy ,
'of field', hnam